]> git.proxmox.com Git - ceph.git/blame - ceph/src/pybind/mgr/dashboard/static/AdminLTE-2.3.7/plugins/datatables/extensions/FixedColumns/examples/index_column.html
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / pybind / mgr / dashboard / static / AdminLTE-2.3.7 / plugins / datatables / extensions / FixedColumns / examples / index_column.html
CommitLineData
31f18b77
FG
1<!DOCTYPE html>
2<html>
3<head>
4 <meta charset="utf-8">
5 <link rel="shortcut icon" type="image/ico" href="http://www.datatables.net/favicon.ico">
6 <meta name="viewport" content="initial-scale=1.0, maximum-scale=2.0">
7
8 <title>FixedColumns example - Index column</title>
9 <link rel="stylesheet" type="text/css" href="../../../media/css/jquery.dataTables.css">
10 <link rel="stylesheet" type="text/css" href="../css/dataTables.fixedColumns.css">
11 <link rel="stylesheet" type="text/css" href="../../../examples/resources/syntax/shCore.css">
12 <link rel="stylesheet" type="text/css" href="../../../examples/resources/demo.css">
13 <style type="text/css" class="init">
14
15 /* Ensure that the demo table scrolls */
16 th, td { white-space: nowrap; }
17 div.dataTables_wrapper {
18 width: 800px;
19 margin: 0 auto;
20 }
21
22 /* Styling for the index columns */
23 th.index,
24 td.index {
25 background-color: white !important;
26 border-top: 1px solid white !important;
27 border-bottom: none !important;
28 }
29 div.DTFC_LeftHeadWrapper table {
30 border-bottom: 1px solid white !important;
31 }
32 div.DTFC_LeftHeadWrapper th {
33 border-bottom: 1px solid white !important;
34 }
35 div.DTFC_LeftBodyWrapper {
36 border-right: 1px solid black;
37 }
38 div.DTFC_LeftFootWrapper th {
39 border-top: 1px solid white !important;
40 }
41
42 </style>
43 <script type="text/javascript" language="javascript" src="../../../media/js/jquery.js"></script>
44 <script type="text/javascript" language="javascript" src="../../../media/js/jquery.dataTables.js"></script>
45 <script type="text/javascript" language="javascript" src="../js/dataTables.fixedColumns.js"></script>
46 <script type="text/javascript" language="javascript" src="../../../examples/resources/syntax/shCore.js"></script>
47 <script type="text/javascript" language="javascript" src="../../../examples/resources/demo.js"></script>
48 <script type="text/javascript" language="javascript" class="init">
49
50
51$(document).ready(function() {
52 var table = $('#example').DataTable( {
53 scrollY: "300px",
54 scrollX: true,
55 scrollCollapse: true,
56 paging: false,
57 columnDefs: [ {
58 sortable: false,
59 "class": "index",
60 targets: 0
61 } ],
62 order: [[ 1, 'asc' ]]
63 } );
64
65 table.on( 'order.dt search.dt', function () {
66 table.column(0, {search:'applied', order:'applied'}).nodes().each( function (cell, i) {
67 cell.innerHTML = i+1;
68 } );
69 } ).draw();
70
71 new $.fn.dataTable.FixedColumns( table );
72} );
73
74
75 </script>
76</head>
77
78<body class="dt-example">
79 <div class="container">
80 <section>
81 <h1>FixedColumns example <span>Index column</span></h1>
82
83 <div class="info">
84 <p>A typical interaction to want to perform with a fixed column, is an index column. A method for how this can be achieved with FixedColumns is shown in this
85 example, building on the <a href="http://datatables.net/examples/api/counter_column">index column</a> example for DataTables. Also shown in this example is how the
86 fixed column can be styled with CSS to show it more prominently.</p>
87 </div>
88
89 <table id="example" class="stripe row-border order-column" cellspacing="0" width="100%">
90 <thead>
91 <tr>
92 <th></th>
93 <th>First name</th>
94 <th>Last name</th>
95 <th>Position</th>
96 <th>Office</th>
97 <th>Age</th>
98 <th>Start date</th>
99 <th>Salary</th>
100 <th>Extn.</th>
101 <th>E-mail</th>
102 </tr>
103 </thead>
104
105 <tbody>
106 <tr>
107 <td></td>
108 <td>Tiger</td>
109 <td>Nixon</td>
110 <td>System Architect</td>
111 <td>Edinburgh</td>
112 <td>61</td>
113 <td>2011/04/25</td>
114 <td>$320,800</td>
115 <td>5421</td>
116 <td>t.nixon@datatables.net</td>
117 </tr>
118 <tr>
119 <td></td>
120 <td>Garrett</td>
121 <td>Winters</td>
122 <td>Accountant</td>
123 <td>Tokyo</td>
124 <td>63</td>
125 <td>2011/07/25</td>
126 <td>$170,750</td>
127 <td>8422</td>
128 <td>g.winters@datatables.net</td>
129 </tr>
130 <tr>
131 <td></td>
132 <td>Ashton</td>
133 <td>Cox</td>
134 <td>Junior Technical Author</td>
135 <td>San Francisco</td>
136 <td>66</td>
137 <td>2009/01/12</td>
138 <td>$86,000</td>
139 <td>1562</td>
140 <td>a.cox@datatables.net</td>
141 </tr>
142 <tr>
143 <td></td>
144 <td>Cedric</td>
145 <td>Kelly</td>
146 <td>Senior Javascript Developer</td>
147 <td>Edinburgh</td>
148 <td>22</td>
149 <td>2012/03/29</td>
150 <td>$433,060</td>
151 <td>6224</td>
152 <td>c.kelly@datatables.net</td>
153 </tr>
154 <tr>
155 <td></td>
156 <td>Airi</td>
157 <td>Satou</td>
158 <td>Accountant</td>
159 <td>Tokyo</td>
160 <td>33</td>
161 <td>2008/11/28</td>
162 <td>$162,700</td>
163 <td>5407</td>
164 <td>a.satou@datatables.net</td>
165 </tr>
166 <tr>
167 <td></td>
168 <td>Brielle</td>
169 <td>Williamson</td>
170 <td>Integration Specialist</td>
171 <td>New York</td>
172 <td>61</td>
173 <td>2012/12/02</td>
174 <td>$372,000</td>
175 <td>4804</td>
176 <td>b.williamson@datatables.net</td>
177 </tr>
178 <tr>
179 <td></td>
180 <td>Herrod</td>
181 <td>Chandler</td>
182 <td>Sales Assistant</td>
183 <td>San Francisco</td>
184 <td>59</td>
185 <td>2012/08/06</td>
186 <td>$137,500</td>
187 <td>9608</td>
188 <td>h.chandler@datatables.net</td>
189 </tr>
190 <tr>
191 <td></td>
192 <td>Rhona</td>
193 <td>Davidson</td>
194 <td>Integration Specialist</td>
195 <td>Tokyo</td>
196 <td>55</td>
197 <td>2010/10/14</td>
198 <td>$327,900</td>
199 <td>6200</td>
200 <td>r.davidson@datatables.net</td>
201 </tr>
202 <tr>
203 <td></td>
204 <td>Colleen</td>
205 <td>Hurst</td>
206 <td>Javascript Developer</td>
207 <td>San Francisco</td>
208 <td>39</td>
209 <td>2009/09/15</td>
210 <td>$205,500</td>
211 <td>2360</td>
212 <td>c.hurst@datatables.net</td>
213 </tr>
214 <tr>
215 <td></td>
216 <td>Sonya</td>
217 <td>Frost</td>
218 <td>Software Engineer</td>
219 <td>Edinburgh</td>
220 <td>23</td>
221 <td>2008/12/13</td>
222 <td>$103,600</td>
223 <td>1667</td>
224 <td>s.frost@datatables.net</td>
225 </tr>
226 <tr>
227 <td></td>
228 <td>Jena</td>
229 <td>Gaines</td>
230 <td>Office Manager</td>
231 <td>London</td>
232 <td>30</td>
233 <td>2008/12/19</td>
234 <td>$90,560</td>
235 <td>3814</td>
236 <td>j.gaines@datatables.net</td>
237 </tr>
238 <tr>
239 <td></td>
240 <td>Quinn</td>
241 <td>Flynn</td>
242 <td>Support Lead</td>
243 <td>Edinburgh</td>
244 <td>22</td>
245 <td>2013/03/03</td>
246 <td>$342,000</td>
247 <td>9497</td>
248 <td>q.flynn@datatables.net</td>
249 </tr>
250 <tr>
251 <td></td>
252 <td>Charde</td>
253 <td>Marshall</td>
254 <td>Regional Director</td>
255 <td>San Francisco</td>
256 <td>36</td>
257 <td>2008/10/16</td>
258 <td>$470,600</td>
259 <td>6741</td>
260 <td>c.marshall@datatables.net</td>
261 </tr>
262 <tr>
263 <td></td>
264 <td>Haley</td>
265 <td>Kennedy</td>
266 <td>Senior Marketing Designer</td>
267 <td>London</td>
268 <td>43</td>
269 <td>2012/12/18</td>
270 <td>$313,500</td>
271 <td>3597</td>
272 <td>h.kennedy@datatables.net</td>
273 </tr>
274 <tr>
275 <td></td>
276 <td>Tatyana</td>
277 <td>Fitzpatrick</td>
278 <td>Regional Director</td>
279 <td>London</td>
280 <td>19</td>
281 <td>2010/03/17</td>
282 <td>$385,750</td>
283 <td>1965</td>
284 <td>t.fitzpatrick@datatables.net</td>
285 </tr>
286 <tr>
287 <td></td>
288 <td>Michael</td>
289 <td>Silva</td>
290 <td>Marketing Designer</td>
291 <td>London</td>
292 <td>66</td>
293 <td>2012/11/27</td>
294 <td>$198,500</td>
295 <td>1581</td>
296 <td>m.silva@datatables.net</td>
297 </tr>
298 <tr>
299 <td></td>
300 <td>Paul</td>
301 <td>Byrd</td>
302 <td>Chief Financial Officer (CFO)</td>
303 <td>New York</td>
304 <td>64</td>
305 <td>2010/06/09</td>
306 <td>$725,000</td>
307 <td>3059</td>
308 <td>p.byrd@datatables.net</td>
309 </tr>
310 <tr>
311 <td></td>
312 <td>Gloria</td>
313 <td>Little</td>
314 <td>Systems Administrator</td>
315 <td>New York</td>
316 <td>59</td>
317 <td>2009/04/10</td>
318 <td>$237,500</td>
319 <td>1721</td>
320 <td>g.little@datatables.net</td>
321 </tr>
322 <tr>
323 <td></td>
324 <td>Bradley</td>
325 <td>Greer</td>
326 <td>Software Engineer</td>
327 <td>London</td>
328 <td>41</td>
329 <td>2012/10/13</td>
330 <td>$132,000</td>
331 <td>2558</td>
332 <td>b.greer@datatables.net</td>
333 </tr>
334 <tr>
335 <td></td>
336 <td>Dai</td>
337 <td>Rios</td>
338 <td>Personnel Lead</td>
339 <td>Edinburgh</td>
340 <td>35</td>
341 <td>2012/09/26</td>
342 <td>$217,500</td>
343 <td>2290</td>
344 <td>d.rios@datatables.net</td>
345 </tr>
346 <tr>
347 <td></td>
348 <td>Jenette</td>
349 <td>Caldwell</td>
350 <td>Development Lead</td>
351 <td>New York</td>
352 <td>30</td>
353 <td>2011/09/03</td>
354 <td>$345,000</td>
355 <td>1937</td>
356 <td>j.caldwell@datatables.net</td>
357 </tr>
358 <tr>
359 <td></td>
360 <td>Yuri</td>
361 <td>Berry</td>
362 <td>Chief Marketing Officer (CMO)</td>
363 <td>New York</td>
364 <td>40</td>
365 <td>2009/06/25</td>
366 <td>$675,000</td>
367 <td>6154</td>
368 <td>y.berry@datatables.net</td>
369 </tr>
370 <tr>
371 <td></td>
372 <td>Caesar</td>
373 <td>Vance</td>
374 <td>Pre-Sales Support</td>
375 <td>New York</td>
376 <td>21</td>
377 <td>2011/12/12</td>
378 <td>$106,450</td>
379 <td>8330</td>
380 <td>c.vance@datatables.net</td>
381 </tr>
382 <tr>
383 <td></td>
384 <td>Doris</td>
385 <td>Wilder</td>
386 <td>Sales Assistant</td>
387 <td>Sidney</td>
388 <td>23</td>
389 <td>2010/09/20</td>
390 <td>$85,600</td>
391 <td>3023</td>
392 <td>d.wilder@datatables.net</td>
393 </tr>
394 <tr>
395 <td></td>
396 <td>Angelica</td>
397 <td>Ramos</td>
398 <td>Chief Executive Officer (CEO)</td>
399 <td>London</td>
400 <td>47</td>
401 <td>2009/10/09</td>
402 <td>$1,200,000</td>
403 <td>5797</td>
404 <td>a.ramos@datatables.net</td>
405 </tr>
406 <tr>
407 <td></td>
408 <td>Gavin</td>
409 <td>Joyce</td>
410 <td>Developer</td>
411 <td>Edinburgh</td>
412 <td>42</td>
413 <td>2010/12/22</td>
414 <td>$92,575</td>
415 <td>8822</td>
416 <td>g.joyce@datatables.net</td>
417 </tr>
418 <tr>
419 <td></td>
420 <td>Jennifer</td>
421 <td>Chang</td>
422 <td>Regional Director</td>
423 <td>Singapore</td>
424 <td>28</td>
425 <td>2010/11/14</td>
426 <td>$357,650</td>
427 <td>9239</td>
428 <td>j.chang@datatables.net</td>
429 </tr>
430 <tr>
431 <td></td>
432 <td>Brenden</td>
433 <td>Wagner</td>
434 <td>Software Engineer</td>
435 <td>San Francisco</td>
436 <td>28</td>
437 <td>2011/06/07</td>
438 <td>$206,850</td>
439 <td>1314</td>
440 <td>b.wagner@datatables.net</td>
441 </tr>
442 <tr>
443 <td></td>
444 <td>Fiona</td>
445 <td>Green</td>
446 <td>Chief Operating Officer (COO)</td>
447 <td>San Francisco</td>
448 <td>48</td>
449 <td>2010/03/11</td>
450 <td>$850,000</td>
451 <td>2947</td>
452 <td>f.green@datatables.net</td>
453 </tr>
454 <tr>
455 <td></td>
456 <td>Shou</td>
457 <td>Itou</td>
458 <td>Regional Marketing</td>
459 <td>Tokyo</td>
460 <td>20</td>
461 <td>2011/08/14</td>
462 <td>$163,000</td>
463 <td>8899</td>
464 <td>s.itou@datatables.net</td>
465 </tr>
466 <tr>
467 <td></td>
468 <td>Michelle</td>
469 <td>House</td>
470 <td>Integration Specialist</td>
471 <td>Sidney</td>
472 <td>37</td>
473 <td>2011/06/02</td>
474 <td>$95,400</td>
475 <td>2769</td>
476 <td>m.house@datatables.net</td>
477 </tr>
478 <tr>
479 <td></td>
480 <td>Suki</td>
481 <td>Burks</td>
482 <td>Developer</td>
483 <td>London</td>
484 <td>53</td>
485 <td>2009/10/22</td>
486 <td>$114,500</td>
487 <td>6832</td>
488 <td>s.burks@datatables.net</td>
489 </tr>
490 <tr>
491 <td></td>
492 <td>Prescott</td>
493 <td>Bartlett</td>
494 <td>Technical Author</td>
495 <td>London</td>
496 <td>27</td>
497 <td>2011/05/07</td>
498 <td>$145,000</td>
499 <td>3606</td>
500 <td>p.bartlett@datatables.net</td>
501 </tr>
502 <tr>
503 <td></td>
504 <td>Gavin</td>
505 <td>Cortez</td>
506 <td>Team Leader</td>
507 <td>San Francisco</td>
508 <td>22</td>
509 <td>2008/10/26</td>
510 <td>$235,500</td>
511 <td>2860</td>
512 <td>g.cortez@datatables.net</td>
513 </tr>
514 <tr>
515 <td></td>
516 <td>Martena</td>
517 <td>Mccray</td>
518 <td>Post-Sales support</td>
519 <td>Edinburgh</td>
520 <td>46</td>
521 <td>2011/03/09</td>
522 <td>$324,050</td>
523 <td>8240</td>
524 <td>m.mccray@datatables.net</td>
525 </tr>
526 <tr>
527 <td></td>
528 <td>Unity</td>
529 <td>Butler</td>
530 <td>Marketing Designer</td>
531 <td>San Francisco</td>
532 <td>47</td>
533 <td>2009/12/09</td>
534 <td>$85,675</td>
535 <td>5384</td>
536 <td>u.butler@datatables.net</td>
537 </tr>
538 <tr>
539 <td></td>
540 <td>Howard</td>
541 <td>Hatfield</td>
542 <td>Office Manager</td>
543 <td>San Francisco</td>
544 <td>51</td>
545 <td>2008/12/16</td>
546 <td>$164,500</td>
547 <td>7031</td>
548 <td>h.hatfield@datatables.net</td>
549 </tr>
550 <tr>
551 <td></td>
552 <td>Hope</td>
553 <td>Fuentes</td>
554 <td>Secretary</td>
555 <td>San Francisco</td>
556 <td>41</td>
557 <td>2010/02/12</td>
558 <td>$109,850</td>
559 <td>6318</td>
560 <td>h.fuentes@datatables.net</td>
561 </tr>
562 <tr>
563 <td></td>
564 <td>Vivian</td>
565 <td>Harrell</td>
566 <td>Financial Controller</td>
567 <td>San Francisco</td>
568 <td>62</td>
569 <td>2009/02/14</td>
570 <td>$452,500</td>
571 <td>9422</td>
572 <td>v.harrell@datatables.net</td>
573 </tr>
574 <tr>
575 <td></td>
576 <td>Timothy</td>
577 <td>Mooney</td>
578 <td>Office Manager</td>
579 <td>London</td>
580 <td>37</td>
581 <td>2008/12/11</td>
582 <td>$136,200</td>
583 <td>7580</td>
584 <td>t.mooney@datatables.net</td>
585 </tr>
586 <tr>
587 <td></td>
588 <td>Jackson</td>
589 <td>Bradshaw</td>
590 <td>Director</td>
591 <td>New York</td>
592 <td>65</td>
593 <td>2008/09/26</td>
594 <td>$645,750</td>
595 <td>1042</td>
596 <td>j.bradshaw@datatables.net</td>
597 </tr>
598 <tr>
599 <td></td>
600 <td>Olivia</td>
601 <td>Liang</td>
602 <td>Support Engineer</td>
603 <td>Singapore</td>
604 <td>64</td>
605 <td>2011/02/03</td>
606 <td>$234,500</td>
607 <td>2120</td>
608 <td>o.liang@datatables.net</td>
609 </tr>
610 <tr>
611 <td></td>
612 <td>Bruno</td>
613 <td>Nash</td>
614 <td>Software Engineer</td>
615 <td>London</td>
616 <td>38</td>
617 <td>2011/05/03</td>
618 <td>$163,500</td>
619 <td>6222</td>
620 <td>b.nash@datatables.net</td>
621 </tr>
622 <tr>
623 <td></td>
624 <td>Sakura</td>
625 <td>Yamamoto</td>
626 <td>Support Engineer</td>
627 <td>Tokyo</td>
628 <td>37</td>
629 <td>2009/08/19</td>
630 <td>$139,575</td>
631 <td>9383</td>
632 <td>s.yamamoto@datatables.net</td>
633 </tr>
634 <tr>
635 <td></td>
636 <td>Thor</td>
637 <td>Walton</td>
638 <td>Developer</td>
639 <td>New York</td>
640 <td>61</td>
641 <td>2013/08/11</td>
642 <td>$98,540</td>
643 <td>8327</td>
644 <td>t.walton@datatables.net</td>
645 </tr>
646 <tr>
647 <td></td>
648 <td>Finn</td>
649 <td>Camacho</td>
650 <td>Support Engineer</td>
651 <td>San Francisco</td>
652 <td>47</td>
653 <td>2009/07/07</td>
654 <td>$87,500</td>
655 <td>2927</td>
656 <td>f.camacho@datatables.net</td>
657 </tr>
658 <tr>
659 <td></td>
660 <td>Serge</td>
661 <td>Baldwin</td>
662 <td>Data Coordinator</td>
663 <td>Singapore</td>
664 <td>64</td>
665 <td>2012/04/09</td>
666 <td>$138,575</td>
667 <td>8352</td>
668 <td>s.baldwin@datatables.net</td>
669 </tr>
670 <tr>
671 <td></td>
672 <td>Zenaida</td>
673 <td>Frank</td>
674 <td>Software Engineer</td>
675 <td>New York</td>
676 <td>63</td>
677 <td>2010/01/04</td>
678 <td>$125,250</td>
679 <td>7439</td>
680 <td>z.frank@datatables.net</td>
681 </tr>
682 <tr>
683 <td></td>
684 <td>Zorita</td>
685 <td>Serrano</td>
686 <td>Software Engineer</td>
687 <td>San Francisco</td>
688 <td>56</td>
689 <td>2012/06/01</td>
690 <td>$115,000</td>
691 <td>4389</td>
692 <td>z.serrano@datatables.net</td>
693 </tr>
694 <tr>
695 <td></td>
696 <td>Jennifer</td>
697 <td>Acosta</td>
698 <td>Junior Javascript Developer</td>
699 <td>Edinburgh</td>
700 <td>43</td>
701 <td>2013/02/01</td>
702 <td>$75,650</td>
703 <td>3431</td>
704 <td>j.acosta@datatables.net</td>
705 </tr>
706 <tr>
707 <td></td>
708 <td>Cara</td>
709 <td>Stevens</td>
710 <td>Sales Assistant</td>
711 <td>New York</td>
712 <td>46</td>
713 <td>2011/12/06</td>
714 <td>$145,600</td>
715 <td>3990</td>
716 <td>c.stevens@datatables.net</td>
717 </tr>
718 <tr>
719 <td></td>
720 <td>Hermione</td>
721 <td>Butler</td>
722 <td>Regional Director</td>
723 <td>London</td>
724 <td>47</td>
725 <td>2011/03/21</td>
726 <td>$356,250</td>
727 <td>1016</td>
728 <td>h.butler@datatables.net</td>
729 </tr>
730 <tr>
731 <td></td>
732 <td>Lael</td>
733 <td>Greer</td>
734 <td>Systems Administrator</td>
735 <td>London</td>
736 <td>21</td>
737 <td>2009/02/27</td>
738 <td>$103,500</td>
739 <td>6733</td>
740 <td>l.greer@datatables.net</td>
741 </tr>
742 <tr>
743 <td></td>
744 <td>Jonas</td>
745 <td>Alexander</td>
746 <td>Developer</td>
747 <td>San Francisco</td>
748 <td>30</td>
749 <td>2010/07/14</td>
750 <td>$86,500</td>
751 <td>8196</td>
752 <td>j.alexander@datatables.net</td>
753 </tr>
754 <tr>
755 <td></td>
756 <td>Shad</td>
757 <td>Decker</td>
758 <td>Regional Director</td>
759 <td>Edinburgh</td>
760 <td>51</td>
761 <td>2008/11/13</td>
762 <td>$183,000</td>
763 <td>6373</td>
764 <td>s.decker@datatables.net</td>
765 </tr>
766 <tr>
767 <td></td>
768 <td>Michael</td>
769 <td>Bruce</td>
770 <td>Javascript Developer</td>
771 <td>Singapore</td>
772 <td>29</td>
773 <td>2011/06/27</td>
774 <td>$183,000</td>
775 <td>5384</td>
776 <td>m.bruce@datatables.net</td>
777 </tr>
778 <tr>
779 <td></td>
780 <td>Donna</td>
781 <td>Snider</td>
782 <td>Customer Support</td>
783 <td>New York</td>
784 <td>27</td>
785 <td>2011/01/25</td>
786 <td>$112,000</td>
787 <td>4226</td>
788 <td>d.snider@datatables.net</td>
789 </tr>
790 </tbody>
791 </table>
792
793 <ul class="tabs">
794 <li class="active">Javascript</li>
795 <li>HTML</li>
796 <li>CSS</li>
797 <li>Ajax</li>
798 <li>Server-side script</li>
799 </ul>
800
801 <div class="tabs">
802 <div class="js">
803 <p>The Javascript shown below is used to initialise the table shown in this example:</p><code class="multiline language-js">$(document).ready(function() {
804 var table = $('#example').DataTable( {
805 scrollY: &quot;300px&quot;,
806 scrollX: true,
807 scrollCollapse: true,
808 paging: false,
809 columnDefs: [ {
810 sortable: false,
811 &quot;class&quot;: &quot;index&quot;,
812 targets: 0
813 } ],
814 order: [[ 1, 'asc' ]]
815 } );
816
817 table.on( 'order.dt search.dt', function () {
818 table.column(0, {search:'applied', order:'applied'}).nodes().each( function (cell, i) {
819 cell.innerHTML = i+1;
820 } );
821 } ).draw();
822
823 new $.fn.dataTable.FixedColumns( table );
824} );</code>
825
826 <p>In addition to the above code, the following Javascript library files are loaded for use in this example:</p>
827
828 <ul>
829 <li><a href="../../../media/js/jquery.js">../../../media/js/jquery.js</a></li>
830 <li><a href="../../../media/js/jquery.dataTables.js">../../../media/js/jquery.dataTables.js</a></li>
831 <li><a href="../js/dataTables.fixedColumns.js">../js/dataTables.fixedColumns.js</a></li>
832 </ul>
833 </div>
834
835 <div class="table">
836 <p>The HTML shown below is the raw HTML table element, before it has been enhanced by DataTables:</p>
837 </div>
838
839 <div class="css">
840 <div>
841 <p>This example uses a little bit of additional CSS beyond what is loaded from the library files (below), in order to correctly display the table. The
842 additional CSS used is shown below:</p><code class="multiline language-css">/* Ensure that the demo table scrolls */
843 th, td { white-space: nowrap; }
844 div.dataTables_wrapper {
845 width: 800px;
846 margin: 0 auto;
847 }
848
849 /* Styling for the index columns */
850 th.index,
851 td.index {
852 background-color: white !important;
853 border-top: 1px solid white !important;
854 border-bottom: none !important;
855 }
856 div.DTFC_LeftHeadWrapper table {
857 border-bottom: 1px solid white !important;
858 }
859 div.DTFC_LeftHeadWrapper th {
860 border-bottom: 1px solid white !important;
861 }
862 div.DTFC_LeftBodyWrapper {
863 border-right: 1px solid black;
864 }
865 div.DTFC_LeftFootWrapper th {
866 border-top: 1px solid white !important;
867 }</code>
868 </div>
869
870 <p>The following CSS library files are loaded for use in this example to provide the styling of the table:</p>
871
872 <ul>
873 <li><a href="../../../media/css/jquery.dataTables.css">../../../media/css/jquery.dataTables.css</a></li>
874 <li><a href="../css/dataTables.fixedColumns.css">../css/dataTables.fixedColumns.css</a></li>
875 </ul>
876 </div>
877
878 <div class="ajax">
879 <p>This table loads data by Ajax. The latest data that has been loaded is shown below. This data will update automatically as any additional data is
880 loaded.</p>
881 </div>
882
883 <div class="php">
884 <p>The script used to perform the server-side processing for this table is shown below. Please note that this is just an example script using PHP. Server-side
885 processing scripts can be written in any language, using <a href="//datatables.net/manual/server-side">the protocol described in the DataTables
886 documentation</a>.</p>
887 </div>
888 </div>
889 </section>
890 </div>
891
892 <section>
893 <div class="footer">
894 <div class="gradient"></div>
895
896 <div class="liner">
897 <h2>Other examples</h2>
898
899 <div class="toc">
900 <div class="toc-group">
901 <h3><a href="./index.html">Examples</a></h3>
902 <ul class="toc active">
903 <li><a href="./left_right_columns.html">Left and right fixed columns</a></li>
904 <li><a href="./simple.html">Basic initialisation</a></li>
905 <li><a href="./two_columns.html">Multiple fixed columns</a></li>
906 <li><a href="./right_column.html">Right column only</a></li>
907 <li><a href="./rowspan.html">Complex headers</a></li>
908 <li><a href="./colvis.html">ColVis integration</a></li>
909 <li><a href="./server-side-processing.html">Server-side processing</a></li>
910 <li><a href="./css_size.html">CSS row sizing</a></li>
911 <li><a href="./size_fixed.html">Assigned column width</a></li>
912 <li><a href="./size_fluid.html">Fluid column width</a></li>
913 <li><a href="./col_filter.html">Individual column filtering</a></li>
914 <li><a href="./bootstrap.html">Bootstrap</a></li>
915 <li class="active"><a href="./index_column.html">Index column</a></li>
916 </ul>
917 </div>
918 </div>
919
920 <div class="epilogue">
921 <p>Please refer to the <a href="http://www.datatables.net">DataTables documentation</a> for full information about its API properties and methods.<br>
922 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>
923 which extend the capabilities of DataTables.</p>
924
925 <p class="copyright">DataTables designed and created by <a href="http://www.sprymedia.co.uk">SpryMedia Ltd</a> &#169; 2007-2015<br>
926 DataTables is licensed under the <a href="http://www.datatables.net/mit">MIT license</a>.</p>
927 </div>
928 </div>
929 </div>
930 </section>
931</body>
932</html>