Subversion-Projekte lars-tiefland.cienc

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

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