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