row_grouping.html 21 KB

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