Subversion-Projekte lars-tiefland.ci

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

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