regex.html 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
  2. <html>
  3. <head>
  4. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  5. <link rel="shortcut icon" type="image/ico" href="http://www.datatables.net/media/images/favicon.ico" />
  6. <title>DataTables example</title>
  7. <style type="text/css" title="currentStyle">
  8. @import "../../media/css/demo_page.css";
  9. @import "../../media/css/demo_table.css";
  10. </style>
  11. <script type="text/javascript" language="javascript" src="../../media/js/jquery.js"></script>
  12. <script type="text/javascript" language="javascript" src="../../media/js/jquery.dataTables.js"></script>
  13. <script type="text/javascript" charset="utf-8">
  14. function fnFilterGlobal ()
  15. {
  16. $('#example').dataTable().fnFilter(
  17. $("#global_filter").val(),
  18. null,
  19. $("#global_regex")[0].checked,
  20. $("#global_smart")[0].checked
  21. );
  22. }
  23. function fnFilterColumn ( i )
  24. {
  25. $('#example').dataTable().fnFilter(
  26. $("#col"+(i+1)+"_filter").val(),
  27. i,
  28. $("#col"+(i+1)+"_regex")[0].checked,
  29. $("#col"+(i+1)+"_smart")[0].checked
  30. );
  31. }
  32. $(document).ready(function() {
  33. $('#example').dataTable();
  34. $("#global_filter").keyup( fnFilterGlobal );
  35. $("#global_regex").click( fnFilterGlobal );
  36. $("#global_smart").click( fnFilterGlobal );
  37. $("#col1_filter").keyup( function() { fnFilterColumn( 0 ); } );
  38. $("#col1_regex").click( function() { fnFilterColumn( 0 ); } );
  39. $("#col1_smart").click( function() { fnFilterColumn( 0 ); } );
  40. $("#col2_filter").keyup( function() { fnFilterColumn( 1 ); } );
  41. $("#col2_regex").click( function() { fnFilterColumn( 1 ); } );
  42. $("#col2_smart").click( function() { fnFilterColumn( 1 ); } );
  43. $("#col3_filter").keyup( function() { fnFilterColumn( 2 ); } );
  44. $("#col3_regex").click( function() { fnFilterColumn( 2 ); } );
  45. $("#col3_smart").click( function() { fnFilterColumn( 2 ); } );
  46. $("#col4_filter").keyup( function() { fnFilterColumn( 3 ); } );
  47. $("#col4_regex").click( function() { fnFilterColumn( 3 ); } );
  48. $("#col4_smart").click( function() { fnFilterColumn( 3 ); } );
  49. $("#col5_filter").keyup( function() { fnFilterColumn( 4 ); } );
  50. $("#col5_regex").click( function() { fnFilterColumn( 4 ); } );
  51. $("#col5_smart").click( function() { fnFilterColumn( 4 ); } );
  52. } );
  53. </script>
  54. </head>
  55. <body id="dt_example">
  56. <div id="container">
  57. <div class="full_width big">
  58. DataTables filtering API example
  59. </div>
  60. <h1>Preamble</h1>
  61. <p>Filtering a table is one of the most common user interactions with a DataTables table, and DataTables provides a number of methods for you to control this interaction. There is a global filter, and a filter for each individual column. The global filter acts on each column.</p>
  62. <p>Each filter (global or column) can be marked as a regular expression (allowing you to create very complex interactions) and as a smart filter or not. When smart filtering is enabled on a particular filter, DataTables will modify the user input string to a complex regular expression which can make filtering more intuitive.</p>
  63. <p>This example allows you to "play" with the various filtering options that DataTables provides.</p>
  64. <h1>Live example</h1>
  65. <table cellpadding="0" cellspacing="0" border="0" class="display">
  66. <thead>
  67. <tr>
  68. <th>Target</th>
  69. <th>Filter text</th>
  70. <th>Treat as regex</th>
  71. <th>Use smart filter</th>
  72. </tr>
  73. </thead>
  74. <tbody>
  75. <tr id="filter_global">
  76. <td align="center">Global filtering</td>
  77. <td align="center"><input type="text" name="global_filter" id="global_filter"></td>
  78. <td align="center"><input type="checkbox" name="global_regex" id="global_regex" ></td>
  79. <td align="center"><input type="checkbox" name="global_smart" id="global_smart" checked></td>
  80. </tr>
  81. <tr id="filter_col1">
  82. <td align="center">Column 1</td>
  83. <td align="center"><input type="text" name="col1_filter" id="col1_filter"></td>
  84. <td align="center"><input type="checkbox" name="col1_regex" id="col1_regex"></td>
  85. <td align="center"><input type="checkbox" name="col1_smart" id="col1_smart" checked></td>
  86. </tr>
  87. <tr id="filter_col2">
  88. <td align="center">Column 2</td>
  89. <td align="center"><input type="text" name="col2_filter" id="col2_filter"></td>
  90. <td align="center"><input type="checkbox" name="col2_regex" id="col2_regex"></td>
  91. <td align="center"><input type="checkbox" name="col2_smart" id="col2_smart" checked></td>
  92. </tr>
  93. <tr id="filter_col3">
  94. <td align="center">Column 3</td>
  95. <td align="center"><input type="text" name="col3_filter" id="col3_filter"></td>
  96. <td align="center"><input type="checkbox" name="col3_regex" id="col3_regex"></td>
  97. <td align="center"><input type="checkbox" name="col3_smart" id="col3_smart" checked></td>
  98. </tr>
  99. <tr id="filter_col4">
  100. <td align="center">Column 4</td>
  101. <td align="center"><input type="text" name="col4_filter" id="col4_filter"></td>
  102. <td align="center"><input type="checkbox" name="col4_regex" id="col4_regex"></td>
  103. <td align="center"><input type="checkbox" name="col4_smart" id="col4_smart" checked></td>
  104. </tr>
  105. <tr id="filter_col5">
  106. <td align="center">Column 5</td>
  107. <td align="center"><input type="text" name="col5_filter" id="col5_filter"></td>
  108. <td align="center"><input type="checkbox" name="col5_regex" id="col5_regex"></td>
  109. <td align="center"><input type="checkbox" name="col5_smart" id="col5_smart" checked></td>
  110. </tr>
  111. </tbody>
  112. </table>
  113. <div id="demo">
  114. <table cellpadding="0" cellspacing="0" border="0" class="display" id="example">
  115. <thead>
  116. <tr>
  117. <th>Rendering engine</th>
  118. <th>Browser</th>
  119. <th>Platform(s)</th>
  120. <th>Engine version</th>
  121. <th>CSS grade</th>
  122. </tr>
  123. </thead>
  124. <tbody>
  125. <tr class="gradeX">
  126. <td>Trident</td>
  127. <td>Internet
  128. Explorer 4.0</td>
  129. <td>Win 95+</td>
  130. <td class="center">4</td>
  131. <td class="center">X</td>
  132. </tr>
  133. <tr class="gradeC">
  134. <td>Trident</td>
  135. <td>Internet
  136. Explorer 5.0</td>
  137. <td>Win 95+</td>
  138. <td class="center">5</td>
  139. <td class="center">C</td>
  140. </tr>
  141. <tr class="gradeA">
  142. <td>Trident</td>
  143. <td>Internet
  144. Explorer 5.5</td>
  145. <td>Win 95+</td>
  146. <td class="center">5,5</td>
  147. <td class="center">A</td>
  148. </tr>
  149. <tr class="gradeA">
  150. <td>Trident</td>
  151. <td>Internet
  152. Explorer 6</td>
  153. <td>Win 98+</td>
  154. <td class="center">6</td>
  155. <td class="center">A</td>
  156. </tr>
  157. <tr class="gradeA">
  158. <td>Trident</td>
  159. <td>Internet Explorer 7</td>
  160. <td>Win XP SP2+</td>
  161. <td class="center">7</td>
  162. <td class="center">A</td>
  163. </tr>
  164. <tr class="gradeA">
  165. <td>Trident</td>
  166. <td>AOL browser (AOL desktop)</td>
  167. <td>Win XP</td>
  168. <td class="center">6</td>
  169. <td class="center">A</td>
  170. </tr>
  171. <tr class="gradeA">
  172. <td>Gecko</td>
  173. <td>Firefox 1.0</td>
  174. <td>Win 98+ / OSX.2+</td>
  175. <td class="center">1,7</td>
  176. <td class="center">A</td>
  177. </tr>
  178. <tr class="gradeA">
  179. <td>Gecko</td>
  180. <td>Firefox 1.5</td>
  181. <td>Win 98+ / OSX.2+</td>
  182. <td class="center">1,8</td>
  183. <td class="center">A</td>
  184. </tr>
  185. <tr class="gradeA">
  186. <td>Gecko</td>
  187. <td>Firefox 2.0</td>
  188. <td>Win 98+ / OSX.2+</td>
  189. <td class="center">1,8</td>
  190. <td class="center">A</td>
  191. </tr>
  192. <tr class="gradeA">
  193. <td>Gecko</td>
  194. <td>Firefox 3.0</td>
  195. <td>Win 2k+ / OSX.3+</td>
  196. <td class="center">1,9</td>
  197. <td class="center">A</td>
  198. </tr>
  199. <tr class="gradeA">
  200. <td>Gecko</td>
  201. <td>Camino 1.0</td>
  202. <td>OSX.2+</td>
  203. <td class="center">1,8</td>
  204. <td class="center">A</td>
  205. </tr>
  206. <tr class="gradeA">
  207. <td>Gecko</td>
  208. <td>Camino 1.5</td>
  209. <td>OSX.3+</td>
  210. <td class="center">1,8</td>
  211. <td class="center">A</td>
  212. </tr>
  213. <tr class="gradeA">
  214. <td>Gecko</td>
  215. <td>Netscape 7.2</td>
  216. <td>Win 95+ / Mac OS 8.6-9.2</td>
  217. <td class="center">1.7</td>
  218. <td class="center">A</td>
  219. </tr>
  220. <tr class="gradeA">
  221. <td>Gecko</td>
  222. <td>Netscape Browser 8</td>
  223. <td>Win 98SE+</td>
  224. <td class="center">1,7</td>
  225. <td class="center">A</td>
  226. </tr>
  227. <tr class="gradeA">
  228. <td>Gecko</td>
  229. <td>Netscape Navigator 9</td>
  230. <td>Win 98+ / OSX.2+</td>
  231. <td class="center">1,8</td>
  232. <td class="center">A</td>
  233. </tr>
  234. <tr class="gradeA">
  235. <td>Gecko</td>
  236. <td>Mozilla 1.0</td>
  237. <td>Win 95+ / OSX.1+</td>
  238. <td class="center">1</td>
  239. <td class="center">A</td>
  240. </tr>
  241. <tr class="gradeA">
  242. <td>Gecko</td>
  243. <td>Mozilla 1.1</td>
  244. <td>Win 95+ / OSX.1+</td>
  245. <td class="center">1,1</td>
  246. <td class="center">A</td>
  247. </tr>
  248. <tr class="gradeA">
  249. <td>Gecko</td>
  250. <td>Mozilla 1.2</td>
  251. <td>Win 95+ / OSX.1+</td>
  252. <td class="center">1,2</td>
  253. <td class="center">A</td>
  254. </tr>
  255. <tr class="gradeA">
  256. <td>Gecko</td>
  257. <td>Mozilla 1.3</td>
  258. <td>Win 95+ / OSX.1+</td>
  259. <td class="center">1,3</td>
  260. <td class="center">A</td>
  261. </tr>
  262. <tr class="gradeA">
  263. <td>Gecko</td>
  264. <td>Mozilla 1.4</td>
  265. <td>Win 95+ / OSX.1+</td>
  266. <td class="center">1,4</td>
  267. <td class="center">A</td>
  268. </tr>
  269. <tr class="gradeA">
  270. <td>Gecko</td>
  271. <td>Mozilla 1.5</td>
  272. <td>Win 95+ / OSX.1+</td>
  273. <td class="center">1,5</td>
  274. <td class="center">A</td>
  275. </tr>
  276. <tr class="gradeA">
  277. <td>Gecko</td>
  278. <td>Mozilla 1.6</td>
  279. <td>Win 95+ / OSX.1+</td>
  280. <td class="center">1,6</td>
  281. <td class="center">A</td>
  282. </tr>
  283. <tr class="gradeA">
  284. <td>Gecko</td>
  285. <td>Mozilla 1.7</td>
  286. <td>Win 98+ / OSX.1+</td>
  287. <td class="center">1,7</td>
  288. <td class="center">A</td>
  289. </tr>
  290. <tr class="gradeA">
  291. <td>Gecko</td>
  292. <td>Mozilla 1.8</td>
  293. <td>Win 98+ / OSX.1+</td>
  294. <td class="center">1,8</td>
  295. <td class="center">A</td>
  296. </tr>
  297. <tr class="gradeA">
  298. <td>Gecko</td>
  299. <td>Seamonkey 1.1</td>
  300. <td>Win 98+ / OSX.2+</td>
  301. <td class="center">1,8</td>
  302. <td class="center">A</td>
  303. </tr>
  304. <tr class="gradeA">
  305. <td>Gecko</td>
  306. <td>Epiphany 2.20</td>
  307. <td>Gnome</td>
  308. <td class="center">1,8</td>
  309. <td class="center">A</td>
  310. </tr>
  311. <tr class="gradeA">
  312. <td>Webkit</td>
  313. <td>Safari 1.2</td>
  314. <td>OSX.3</td>
  315. <td class="center">125,5</td>
  316. <td class="center">A</td>
  317. </tr>
  318. <tr class="gradeA">
  319. <td>Webkit</td>
  320. <td>Safari 1.3</td>
  321. <td>OSX.3</td>
  322. <td class="center">312,8</td>
  323. <td class="center">A</td>
  324. </tr>
  325. <tr class="gradeA">
  326. <td>Webkit</td>
  327. <td>Safari 2.0</td>
  328. <td>OSX.4+</td>
  329. <td class="center">419,3</td>
  330. <td class="center">A</td>
  331. </tr>
  332. <tr class="gradeA">
  333. <td>Webkit</td>
  334. <td>Safari 3.0</td>
  335. <td>OSX.4+</td>
  336. <td class="center">522,1</td>
  337. <td class="center">A</td>
  338. </tr>
  339. <tr class="gradeA">
  340. <td>Webkit</td>
  341. <td>OmniWeb 5.5</td>
  342. <td>OSX.4+</td>
  343. <td class="center">420</td>
  344. <td class="center">A</td>
  345. </tr>
  346. <tr class="gradeA">
  347. <td>Webkit</td>
  348. <td>iPod Touch / iPhone</td>
  349. <td>iPod</td>
  350. <td class="center">420,1</td>
  351. <td class="center">A</td>
  352. </tr>
  353. <tr class="gradeA">
  354. <td>Webkit</td>
  355. <td>S60</td>
  356. <td>S60</td>
  357. <td class="center">413</td>
  358. <td class="center">A</td>
  359. </tr>
  360. <tr class="gradeA">
  361. <td>Presto</td>
  362. <td>Opera 7.0</td>
  363. <td>Win 95+ / OSX.1+</td>
  364. <td class="center">-</td>
  365. <td class="center">A</td>
  366. </tr>
  367. <tr class="gradeA">
  368. <td>Presto</td>
  369. <td>Opera 7.5</td>
  370. <td>Win 95+ / OSX.2+</td>
  371. <td class="center">-</td>
  372. <td class="center">A</td>
  373. </tr>
  374. <tr class="gradeA">
  375. <td>Presto</td>
  376. <td>Opera 8.0</td>
  377. <td>Win 95+ / OSX.2+</td>
  378. <td class="center">-</td>
  379. <td class="center">A</td>
  380. </tr>
  381. <tr class="gradeA">
  382. <td>Presto</td>
  383. <td>Opera 8.5</td>
  384. <td>Win 95+ / OSX.2+</td>
  385. <td class="center">-</td>
  386. <td class="center">A</td>
  387. </tr>
  388. <tr class="gradeA">
  389. <td>Presto</td>
  390. <td>Opera 9.0</td>
  391. <td>Win 95+ / OSX.3+</td>
  392. <td class="center">-</td>
  393. <td class="center">A</td>
  394. </tr>
  395. <tr class="gradeA">
  396. <td>Presto</td>
  397. <td>Opera 9.2</td>
  398. <td>Win 88+ / OSX.3+</td>
  399. <td class="center">-</td>
  400. <td class="center">A</td>
  401. </tr>
  402. <tr class="gradeA">
  403. <td>Presto</td>
  404. <td>Opera 9.5</td>
  405. <td>Win 88+ / OSX.3+</td>
  406. <td class="center">-</td>
  407. <td class="center">A</td>
  408. </tr>
  409. <tr class="gradeA">
  410. <td>Presto</td>
  411. <td>Opera for Wii</td>
  412. <td>Wii</td>
  413. <td class="center">-</td>
  414. <td class="center">A</td>
  415. </tr>
  416. <tr class="gradeA">
  417. <td>Presto</td>
  418. <td>Nokia N800</td>
  419. <td>N800</td>
  420. <td class="center">-</td>
  421. <td class="center">A</td>
  422. </tr>
  423. <tr class="gradeA">
  424. <td>Presto</td>
  425. <td>Nintendo DS browser</td>
  426. <td>Nintendo DS</td>
  427. <td class="center">8,5</td>
  428. <td class="center">C/A<sup>1</sup></td>
  429. </tr>
  430. <tr class="gradeC">
  431. <td>KHTML</td>
  432. <td>Konqureror 3.1</td>
  433. <td>KDE 3.1</td>
  434. <td class="center">3,1</td>
  435. <td class="center">C</td>
  436. </tr>
  437. <tr class="gradeA">
  438. <td>KHTML</td>
  439. <td>Konqureror 3.3</td>
  440. <td>KDE 3.3</td>
  441. <td class="center">3,3</td>
  442. <td class="center">A</td>
  443. </tr>
  444. <tr class="gradeA">
  445. <td>KHTML</td>
  446. <td>Konqureror 3.5</td>
  447. <td>KDE 3.5</td>
  448. <td class="center">3,5</td>
  449. <td class="center">A</td>
  450. </tr>
  451. <tr class="gradeX">
  452. <td>Tasman</td>
  453. <td>Internet Explorer 4.5</td>
  454. <td>Mac OS 8-9</td>
  455. <td class="center">-</td>
  456. <td class="center">X</td>
  457. </tr>
  458. <tr class="gradeC">
  459. <td>Tasman</td>
  460. <td>Internet Explorer 5.1</td>
  461. <td>Mac OS 7.6-9</td>
  462. <td class="center">1</td>
  463. <td class="center">C</td>
  464. </tr>
  465. <tr class="gradeC">
  466. <td>Tasman</td>
  467. <td>Internet Explorer 5.2</td>
  468. <td>Mac OS 8-X</td>
  469. <td class="center">1</td>
  470. <td class="center">C</td>
  471. </tr>
  472. <tr class="gradeA">
  473. <td>Misc</td>
  474. <td>NetFront 3.1</td>
  475. <td>Embedded devices</td>
  476. <td class="center">-</td>
  477. <td class="center">C</td>
  478. </tr>
  479. <tr class="gradeA">
  480. <td>Misc</td>
  481. <td>NetFront 3.4</td>
  482. <td>Embedded devices</td>
  483. <td class="center">-</td>
  484. <td class="center">A</td>
  485. </tr>
  486. <tr class="gradeX">
  487. <td>Misc</td>
  488. <td>Dillo 0.8</td>
  489. <td>Embedded devices</td>
  490. <td class="center">-</td>
  491. <td class="center">X</td>
  492. </tr>
  493. <tr class="gradeX">
  494. <td>Misc</td>
  495. <td>Links</td>
  496. <td>Text only</td>
  497. <td class="center">-</td>
  498. <td class="center">X</td>
  499. </tr>
  500. <tr class="gradeX">
  501. <td>Misc</td>
  502. <td>Lynx</td>
  503. <td>Text only</td>
  504. <td class="center">-</td>
  505. <td class="center">X</td>
  506. </tr>
  507. <tr class="gradeC">
  508. <td>Misc</td>
  509. <td>IE Mobile</td>
  510. <td>Windows Mobile 6</td>
  511. <td class="center">-</td>
  512. <td class="center">C</td>
  513. </tr>
  514. <tr class="gradeC">
  515. <td>Misc</td>
  516. <td>PSP browser</td>
  517. <td>PSP</td>
  518. <td class="center">-</td>
  519. <td class="center">C</td>
  520. </tr>
  521. <tr class="gradeU">
  522. <td>Other browsers</td>
  523. <td>All others</td>
  524. <td>-</td>
  525. <td class="center">-</td>
  526. <td class="center">U</td>
  527. </tr>
  528. </tbody>
  529. <tfoot>
  530. <tr>
  531. <th>Rendering engine</th>
  532. <th>Browser</th>
  533. <th>Platform(s)</th>
  534. <th>Engine version</th>
  535. <th>CSS grade</th>
  536. </tr>
  537. </tfoot>
  538. </table>
  539. </div>
  540. <div class="spacer"></div>
  541. <h1>Initialisation code</h1>
  542. <pre class="brush: js;">function fnFilterGlobal ()
  543. {
  544. $('#example').dataTable().fnFilter(
  545. $("#global_filter").val(),
  546. null,
  547. $("#global_regex")[0].checked,
  548. $("#global_smart")[0].checked
  549. );
  550. }
  551. function fnFilterColumn ( i )
  552. {
  553. $('#example').dataTable().fnFilter(
  554. $("#col"+(i+1)+"_filter").val(),
  555. i,
  556. $("#col"+(i+1)+"_regex")[0].checked,
  557. $("#col"+(i+1)+"_smart")[0].checked
  558. );
  559. }
  560. $(document).ready(function() {
  561. $('#example').dataTable();
  562. $("#global_filter").keyup( fnFilterGlobal );
  563. $("#global_regex").click( fnFilterGlobal );
  564. $("#global_smart").click( fnFilterGlobal );
  565. $("#col1_filter").keyup( function() { fnFilterColumn( 0 ); } );
  566. $("#col1_regex").click( function() { fnFilterColumn( 0 ); } );
  567. $("#col1_smart").click( function() { fnFilterColumn( 0 ); } );
  568. // ... etc for the other four columns
  569. } );</pre>
  570. <style type="text/css">
  571. @import "../examples_support/syntax/css/shCore.css";
  572. </style>
  573. <script type="text/javascript" language="javascript" src="../examples_support/syntax/js/shCore.js"></script>
  574. <h1>Other examples</h1>
  575. <div class="demo_links">
  576. <h2>Basic initialisation</h2>
  577. <ul>
  578. <li><a href="../basic_init/zero_config.html">Zero configuration</a></li>
  579. <li><a href="../basic_init/filter_only.html">Feature enablement</a></li>
  580. <li><a href="../basic_init/table_sorting.html">Sorting data</a></li>
  581. <li><a href="../basic_init/multi_col_sort.html">Multi-column sorting</a></li>
  582. <li><a href="../basic_init/multiple_tables.html">Multiple tables</a></li>
  583. <li><a href="../basic_init/hidden_columns.html">Hidden columns</a></li>
  584. <li><a href="../basic_init/complex_header.html">Complex headers - grouping with colspan</a></li>
  585. <li><a href="../basic_init/dom.html">DOM positioning</a></li>
  586. <li><a href="../basic_init/flexible_width.html">Flexible table width</a></li>
  587. <li><a href="../basic_init/state_save.html">State saving</a></li>
  588. <li><a href="../basic_init/alt_pagination.html">Alternative pagination styles</a></li>
  589. <li>Scrolling: <br>
  590. <a href="../basic_init/scroll_x.html">Horizontal</a> /
  591. <a href="../basic_init/scroll_y.html">Vertical</a> /
  592. <a href="../basic_init/scroll_xy.html">Both</a> /
  593. <a href="../basic_init/scroll_y_theme.html">Themed</a> /
  594. <a href="../basic_init/scroll_y_infinite.html">Infinite</a>
  595. </li>
  596. <li><a href="../basic_init/language.html">Change language information (internationalisation)</a></li>
  597. <li><a href="../basic_init/themes.html">ThemeRoller themes (Smoothness)</a></li>
  598. </ul>
  599. <h2>Advanced initialisation</h2>
  600. <ul>
  601. <li>Events: <br>
  602. <a href="../advanced_init/events_live.html">Live events</a> /
  603. <a href="../advanced_init/events_pre_init.html">Pre-init</a> /
  604. <a href="../advanced_init/events_post_init.html">Post-init</a>
  605. </li>
  606. <li><a href="../advanced_init/column_render.html">Column rendering</a></li>
  607. <li><a href="../advanced_init/html_sort.html">Sorting without HTML tags</a></li>
  608. <li><a href="../advanced_init/dom_multiple_elements.html">Multiple table controls (sDom)</a></li>
  609. <li><a href="../advanced_init/length_menu.html">Defining length menu options</a></li>
  610. <li><a href="../advanced_init/complex_header.html">Complex headers and hidden columns</a></li>
  611. <li><a href="../advanced_init/dom_toolbar.html">Custom toolbar (element) around table</a></li>
  612. <li><a href="../advanced_init/highlight.html">Row highlighting with CSS</a></li>
  613. <li><a href="../advanced_init/row_grouping.html">Row grouping</a></li>
  614. <li><a href="../advanced_init/row_callback.html">Row callback</a></li>
  615. <li><a href="../advanced_init/footer_callback.html">Footer callback</a></li>
  616. <li><a href="../advanced_init/sorting_control.html">Control sorting direction of columns</a></li>
  617. <li><a href="../advanced_init/language_file.html">Change language information from a file (internationalisation)</a></li>
  618. <li><a href="../advanced_init/defaults.html">Setting defaults</a></li>
  619. <li><a href="../advanced_init/localstorage.html">State saving with localStorage</a></li>
  620. <li><a href="../advanced_init/dt_events.html">Custom events</a></li>
  621. </ul>
  622. <h2>API</h2>
  623. <ul>
  624. <li><a href="../api/add_row.html">Dynamically add a new row</a></li>
  625. <li><a href="../api/multi_filter.html">Individual column filtering (using "input" elements)</a></li>
  626. <li><a href="../api/multi_filter_select.html">Individual column filtering (using "select" elements)</a></li>
  627. <li><a href="../api/highlight.html">Highlight rows and columns</a></li>
  628. <li><a href="../api/row_details.html">Show and hide details about a particular record</a></li>
  629. <li><a href="../api/select_row.html">User selectable rows (multiple rows)</a></li>
  630. <li><a href="../api/select_single_row.html">User selectable rows (single row) and delete rows</a></li>
  631. <li><a href="../api/editable.html">Editable rows (with jEditable)</a></li>
  632. <li><a href="../api/form.html">Submit form with elements in table</a></li>
  633. <li><a href="../api/counter_column.html">Index column (static number column)</a></li>
  634. <li><a href="../api/show_hide.html">Show and hide columns dynamically</a></li>
  635. <li><a href="../api/api_in_init.html">API function use in initialisation object (callback)</a></li>
  636. <li><a href="../api/tabs_and_scrolling.html">DataTables scrolling and tabs</a></li>
  637. <li><a href="../api/regex.html">Regular expression filtering</a></li>
  638. </ul>
  639. </div>
  640. <div class="demo_links">
  641. <h2>Data sources</h2>
  642. <ul>
  643. <li><a href="../data_sources/dom.html">DOM</a></li>
  644. <li><a href="../data_sources/js_array.html">Javascript array</a></li>
  645. <li><a href="../data_sources/ajax.html">Ajax source</a></li>
  646. <li><a href="../data_sources/server_side.html">Server side processing</a></li>
  647. </ul>
  648. <h2>Server-side processing</h2>
  649. <ul>
  650. <li><a href="../server_side/server_side.html">Obtain server-side data</a></li>
  651. <li><a href="../server_side/custom_vars.html">Add extra HTTP variables</a></li>
  652. <li><a href="../server_side/post.html">Use HTTP POST</a></li>
  653. <li><a href="../server_side/ids.html">Automatic addition of IDs and classes to rows</a></li>
  654. <li><a href="../server_side/object_data.html">Reading table data from objects</a></li>
  655. <li><a href="../server_side/row_details.html">Show and hide details about a particular record</a></li>
  656. <li><a href="../server_side/select_rows.html">User selectable rows (multiple rows)</a></li>
  657. <li><a href="../server_side/jsonp.html">JSONP for a cross domain data source</a></li>
  658. <li><a href="../server_side/editable.html">jEditable integration with DataTables</a></li>
  659. <li><a href="../server_side/defer_loading.html">Deferred loading of Ajax data</a></li>
  660. <li><a href="../server_side/pipeline.html">Pipelining data (reduce Ajax calls for paging)</a></li>
  661. </ul>
  662. <h2>Ajax data source</h2>
  663. <ul>
  664. <li><a href="../ajax/ajax.html">Ajax sourced data (array of arrays)</a></li>
  665. <li><a href="../ajax/objects.html">Ajax sourced data (array of objects)</a></li>
  666. <li><a href="../ajax/defer_render.html">Deferred DOM creation for extra speed</a></li>
  667. <li><a href="../ajax/null_data_source.html">Empty data source columns</a></li>
  668. <li><a href="../ajax/custom_data_property.html">Use a data source other than aaData (the default)</a></li>
  669. <li><a href="../ajax/objects_subarrays.html">Read column data from sub-arrays</a></li>
  670. <li><a href="../ajax/deep.html">Read column data from deeply nested properties</a></li>
  671. </ul>
  672. <h2>Plug-ins</h2>
  673. <ul>
  674. <li><a href="../plug-ins/plugin_api.html">Add custom API functions</a></li>
  675. <li><a href="../plug-ins/sorting_plugin.html">Sorting and automatic type detection</a></li>
  676. <li><a href="../plug-ins/sorting_sType.html">Sorting without automatic type detection</a></li>
  677. <li><a href="../plug-ins/paging_plugin.html">Custom pagination controls</a></li>
  678. <li><a href="../plug-ins/range_filtering.html">Range filtering / custom filtering</a></li>
  679. <li><a href="../plug-ins/dom_sort.html">Live DOM sorting</a></li>
  680. <li><a href="../plug-ins/html_sort.html">Automatic HTML type detection</a></li>
  681. </ul>
  682. </div>
  683. <div id="footer" class="clear" style="text-align:center;">
  684. <p>
  685. Please refer to the <a href="http://www.datatables.net/usage">DataTables documentation</a> for full information about its API properties and methods.<br>
  686. Additionally, there are a wide range of <a href="http://www.datatables.net/extras">extras</a> and <a href="http://www.datatables.net/plug-ins">plug-ins</a> which extend the capabilities of DataTables.
  687. </p>
  688. <span style="font-size:10px;">
  689. DataTables designed and created by <a href="http://www.sprymedia.co.uk">Allan Jardine</a> &copy; 2007-2011<br>
  690. DataTables is dual licensed under the <a href="http://www.datatables.net/license_gpl2">GPL v2 license</a> or a <a href="http://www.datatables.net/license_bsd">BSD (3-point) license</a>.
  691. </span>
  692. </div>
  693. </div>
  694. </body>
  695. </html>