comparison DataTables-1.9.4/extras/FixedColumns/scale_fixed.html @ 0:ac5f9272033b draft

first upload
author saskia-hiltemann
date Tue, 01 Jul 2014 11:42:23 -0400
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:ac5f9272033b
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.sprymedia.co.uk/media/images/favicon.ico">
6
7 <title>FixedColumns example</title>
8 <style type="text/css" title="currentStyle">
9 @import "../../media/css/demo_page.css";
10 @import "../../media/css/demo_table.css";
11 table.DTFC_Cloned th { white-space: nowrap; }
12 </style>
13 <script type="text/javascript" charset="utf-8" src="../../media/js/jquery.js"></script>
14 <script type="text/javascript" charset="utf-8" src="../../media/js/jquery.dataTables.js"></script>
15 <script type="text/javascript" charset="utf-8" src="media/js/FixedColumns.js"></script>
16 <script type="text/javascript" charset="utf-8">
17 $(document).ready( function () {
18 var oTable = $('#example').dataTable( {
19 "sScrollY": "300px",
20 "sScrollX": "100%",
21 "sScrollXInner": "1200px",
22 "bScrollCollapse": true,
23 "bPaginate": false
24 } );
25 new FixedColumns( oTable, {
26 "iLeftWidth": 150
27 } );
28 } );
29 </script>
30 </head>
31 <body id="dt_example">
32 <div id="container" style="width:80%">
33 <div class="full_width big">
34 FixedColumns example - fixed width fixed column
35 </div>
36
37 <h1>Preamble</h1>
38 <p>This example shows how the fixed column can have a specific pixel width defined for it. By giving the parameter <i>iLeftWidth</i> to FixedColumns, it will use this value to set the width of the fixed column (or columns, if multiple columns are used). Resizing the window will simply cause the DataTable scrolling area to resize dynamically. Note that sScrollXInner is used to force the width of the DataTable - you probably won't want or need this. Note also that the scaling in this demo contrasts with the <a href="scale_relative.html">relative scaling</a> example where the fixed column width is a percentage of the visible area.</p>
39
40 <h1>Live example</h1>
41 <div id="demo">
42 <table cellpadding="0" cellspacing="0" border="0" class="display" id="example">
43 <thead>
44 <tr>
45 <th>Rendering engine</th>
46 <th>Browser</th>
47 <th>Platform(s)</th>
48 <th>Engine version</th>
49 <th>CSS grade</th>
50 </tr>
51 </thead>
52 <tfoot>
53 <tr>
54 <th>Rendering engine</th>
55 <th>Browser</th>
56 <th>Platform(s)</th>
57 <th>Engine version</th>
58 <th>CSS grade</th>
59 </tr>
60 </tfoot>
61 <tbody>
62 <tr class="gradeX">
63 <td>Trident</td>
64 <td>Internet
65 Explorer 4.0</td>
66 <td>Win 95+</td>
67 <td class="center">4</td>
68 <td class="center">X</td>
69 </tr>
70 <tr class="gradeC">
71 <td>Trident</td>
72 <td>Internet
73 Explorer 5.0</td>
74 <td>Win 95+</td>
75 <td class="center">5</td>
76 <td class="center">C</td>
77 </tr>
78 <tr class="gradeA">
79 <td>Trident</td>
80 <td>Internet
81 Explorer 5.5</td>
82 <td>Win 95+</td>
83 <td class="center">5.5</td>
84 <td class="center">A</td>
85 </tr>
86 <tr class="gradeA">
87 <td>Trident</td>
88 <td>Internet
89 Explorer 6</td>
90 <td>Win 98+</td>
91 <td class="center">6</td>
92 <td class="center">A</td>
93 </tr>
94 <tr class="gradeA">
95 <td>Trident</td>
96 <td>Internet Explorer 7</td>
97 <td>Win XP SP2+</td>
98 <td class="center">7</td>
99 <td class="center">A</td>
100 </tr>
101 <tr class="gradeA">
102 <td>Trident</td>
103 <td>AOL browser (AOL desktop)</td>
104 <td>Win XP</td>
105 <td class="center">6</td>
106 <td class="center">A</td>
107 </tr>
108 <tr class="gradeA">
109 <td>Gecko</td>
110 <td>Firefox 1.0</td>
111 <td>Win 98+ / OSX.2+</td>
112 <td class="center">1.7</td>
113 <td class="center">A</td>
114 </tr>
115 <tr class="gradeA">
116 <td>Gecko</td>
117 <td>Firefox <br>1.5</td>
118 <td>Win 98+ / OSX.2+</td>
119 <td class="center">1.8</td>
120 <td class="center">A</td>
121 </tr>
122 <tr class="gradeA">
123 <td>Gecko</td>
124 <td>Firefox 2.0</td>
125 <td>Win 98+ / OSX.2+</td>
126 <td class="center">1.8</td>
127 <td class="center">A</td>
128 </tr>
129 <tr class="gradeA">
130 <td>Gecko</td>
131 <td>Firefox 3.0</td>
132 <td>Win 2k+ / OSX.3+</td>
133 <td class="center">1.9</td>
134 <td class="center">A</td>
135 </tr>
136 <tr class="gradeA">
137 <td>Gecko</td>
138 <td>Camino 1.0</td>
139 <td>OSX.2+</td>
140 <td class="center">1.8</td>
141 <td class="center">A</td>
142 </tr>
143 <tr class="gradeA">
144 <td>Gecko</td>
145 <td>Camino 1.5</td>
146 <td>OSX.3+</td>
147 <td class="center">1.8</td>
148 <td class="center">A</td>
149 </tr>
150 <tr class="gradeA">
151 <td>Gecko</td>
152 <td>Netscape 7.2</td>
153 <td>Win 95+ / Mac OS 8.6-9.2</td>
154 <td class="center">1.7</td>
155 <td class="center">A</td>
156 </tr>
157 <tr class="gradeA">
158 <td>Gecko</td>
159 <td>Netscape Browser 8</td>
160 <td>Win 98SE+</td>
161 <td class="center">1.7</td>
162 <td class="center">A</td>
163 </tr>
164 <tr class="gradeA">
165 <td>Gecko</td>
166 <td>Netscape Navigator 9</td>
167 <td>Win 98+ / OSX.2+</td>
168 <td class="center">1.8</td>
169 <td class="center">A</td>
170 </tr>
171 <tr class="gradeA">
172 <td>Gecko</td>
173 <td>Mozilla 1.0</td>
174 <td>Win 95+ / OSX.1+</td>
175 <td class="center">1</td>
176 <td class="center">A</td>
177 </tr>
178 <tr class="gradeA">
179 <td>Gecko</td>
180 <td>Mozilla 1.1</td>
181 <td>Win 95+ / OSX.1+</td>
182 <td class="center">1.1</td>
183 <td class="center">A</td>
184 </tr>
185 <tr class="gradeA">
186 <td>Gecko</td>
187 <td>Mozilla 1.2</td>
188 <td>Win 95+ / OSX.1+</td>
189 <td class="center">1.2</td>
190 <td class="center">A</td>
191 </tr>
192 <tr class="gradeA">
193 <td>Gecko</td>
194 <td>Mozilla 1.3</td>
195 <td>Win 95+ / OSX.1+</td>
196 <td class="center">1.3</td>
197 <td class="center">A</td>
198 </tr>
199 <tr class="gradeA">
200 <td>Gecko</td>
201 <td>Mozilla 1.4</td>
202 <td>Win 95+ / OSX.1+</td>
203 <td class="center">1.4</td>
204 <td class="center">A</td>
205 </tr>
206 <tr class="gradeA">
207 <td>Gecko</td>
208 <td>Mozilla 1.5</td>
209 <td>Win 95+ / OSX.1+</td>
210 <td class="center">1.5</td>
211 <td class="center">A</td>
212 </tr>
213 <tr class="gradeA">
214 <td>Gecko</td>
215 <td>Mozilla 1.6</td>
216 <td>Win 95+ / OSX.1+</td>
217 <td class="center">1.6</td>
218 <td class="center">A</td>
219 </tr>
220 <tr class="gradeA">
221 <td>Gecko</td>
222 <td>Mozilla 1.7</td>
223 <td>Win 98+ / OSX.1+</td>
224 <td class="center">1.7</td>
225 <td class="center">A</td>
226 </tr>
227 <tr class="gradeA">
228 <td>Gecko</td>
229 <td>Mozilla 1.8</td>
230 <td>Win 98+ / OSX.1+</td>
231 <td class="center">1.8</td>
232 <td class="center">A</td>
233 </tr>
234 <tr class="gradeA">
235 <td>Gecko</td>
236 <td>Seamonkey 1.1</td>
237 <td>Win 98+ / OSX.2+</td>
238 <td class="center">1.8</td>
239 <td class="center">A</td>
240 </tr>
241 <tr class="gradeA">
242 <td>Gecko</td>
243 <td>Epiphany 2.20</td>
244 <td>Gnome</td>
245 <td class="center">1.8</td>
246 <td class="center">A</td>
247 </tr>
248 <tr class="gradeA">
249 <td>Webkit</td>
250 <td>Safari 1.2</td>
251 <td>OSX.3</td>
252 <td class="center">125.5</td>
253 <td class="center">A</td>
254 </tr>
255 <tr class="gradeA">
256 <td>Webkit</td>
257 <td>Safari 1.3</td>
258 <td>OSX.3</td>
259 <td class="center">312.8</td>
260 <td class="center">A</td>
261 </tr>
262 <tr class="gradeA">
263 <td>Webkit</td>
264 <td>Safari 2.0</td>
265 <td>OSX.4+</td>
266 <td class="center">419.3</td>
267 <td class="center">A</td>
268 </tr>
269 <tr class="gradeA">
270 <td>Webkit</td>
271 <td>Safari 3.0</td>
272 <td>OSX.4+</td>
273 <td class="center">522.1</td>
274 <td class="center">A</td>
275 </tr>
276 <tr class="gradeA">
277 <td>Webkit</td>
278 <td>OmniWeb 5.5</td>
279 <td>OSX.4+</td>
280 <td class="center">420</td>
281 <td class="center">A</td>
282 </tr>
283 <tr class="gradeA">
284 <td>Webkit</td>
285 <td>iPod Touch / iPhone</td>
286 <td>iPod</td>
287 <td class="center">420.1</td>
288 <td class="center">A</td>
289 </tr>
290 <tr class="gradeA">
291 <td>Webkit</td>
292 <td>S60</td>
293 <td>S60</td>
294 <td class="center">413</td>
295 <td class="center">A</td>
296 </tr>
297 <tr class="gradeA">
298 <td>Presto</td>
299 <td>Opera 7.0</td>
300 <td>Win 95+ / OSX.1+</td>
301 <td class="center">-</td>
302 <td class="center">A</td>
303 </tr>
304 <tr class="gradeA">
305 <td>Presto</td>
306 <td>Opera 7.5</td>
307 <td>Win 95+ / OSX.2+</td>
308 <td class="center">-</td>
309 <td class="center">A</td>
310 </tr>
311 <tr class="gradeA">
312 <td>Presto</td>
313 <td>Opera 8.0</td>
314 <td>Win 95+ / OSX.2+</td>
315 <td class="center">-</td>
316 <td class="center">A</td>
317 </tr>
318 <tr class="gradeA">
319 <td>Presto</td>
320 <td>Opera 8.5</td>
321 <td>Win 95+ / OSX.2+</td>
322 <td class="center">-</td>
323 <td class="center">A</td>
324 </tr>
325 <tr class="gradeA">
326 <td>Presto</td>
327 <td>Opera 9.0</td>
328 <td>Win 95+ / OSX.3+</td>
329 <td class="center">-</td>
330 <td class="center">A</td>
331 </tr>
332 <tr class="gradeA">
333 <td>Presto</td>
334 <td>Opera 9.2</td>
335 <td>Win 88+ / OSX.3+</td>
336 <td class="center">-</td>
337 <td class="center">A</td>
338 </tr>
339 <tr class="gradeA">
340 <td>Presto</td>
341 <td>Opera 9.5</td>
342 <td>Win 88+ / OSX.3+</td>
343 <td class="center">-</td>
344 <td class="center">A</td>
345 </tr>
346 <tr class="gradeA">
347 <td>Presto</td>
348 <td>Opera for Wii</td>
349 <td>Wii</td>
350 <td class="center">-</td>
351 <td class="center">A</td>
352 </tr>
353 <tr class="gradeA">
354 <td>Presto</td>
355 <td>Nokia N800</td>
356 <td>N800</td>
357 <td class="center">-</td>
358 <td class="center">A</td>
359 </tr>
360 <tr class="gradeA">
361 <td>Presto</td>
362 <td>Nintendo DS browser</td>
363 <td>Nintendo DS</td>
364 <td class="center">8.5</td>
365 <td class="center">C/A</td>
366 </tr>
367 <tr class="gradeC">
368 <td>KHTML</td>
369 <td>Konqureror 3.1</td>
370 <td>KDE 3.1</td>
371 <td class="center">3.1</td>
372 <td class="center">C</td>
373 </tr>
374 <tr class="gradeA">
375 <td>KHTML</td>
376 <td>Konqureror 3.3</td>
377 <td>KDE 3.3</td>
378 <td class="center">3.3</td>
379 <td class="center">A</td>
380 </tr>
381 <tr class="gradeA">
382 <td>KHTML</td>
383 <td>Konqureror 3.5</td>
384 <td>KDE 3.5</td>
385 <td class="center">3.5</td>
386 <td class="center">A</td>
387 </tr>
388 <tr class="gradeX">
389 <td>Tasman</td>
390 <td>Internet Explorer 4.5</td>
391 <td>Mac OS 8-9</td>
392 <td class="center">-</td>
393 <td class="center">X</td>
394 </tr>
395 <tr class="gradeC">
396 <td>Tasman</td>
397 <td>Internet Explorer 5.1</td>
398 <td>Mac OS 7.6-9</td>
399 <td class="center">1</td>
400 <td class="center">C</td>
401 </tr>
402 <tr class="gradeC">
403 <td>Tasman</td>
404 <td>Internet Explorer 5.2</td>
405 <td>Mac OS 8-X</td>
406 <td class="center">1</td>
407 <td class="center">C</td>
408 </tr>
409 <tr class="gradeA">
410 <td>Misc</td>
411 <td>NetFront 3.1</td>
412 <td>Embedded devices</td>
413 <td class="center">-</td>
414 <td class="center">C</td>
415 </tr>
416 <tr class="gradeA">
417 <td>Misc</td>
418 <td>NetFront 3.4</td>
419 <td>Embedded devices</td>
420 <td class="center">-</td>
421 <td class="center">A</td>
422 </tr>
423 <tr class="gradeX">
424 <td>Misc</td>
425 <td>Dillo 0.8</td>
426 <td>Embedded devices</td>
427 <td class="center">-</td>
428 <td class="center">X</td>
429 </tr>
430 <tr class="gradeX">
431 <td>Misc</td>
432 <td>Links</td>
433 <td>Text only</td>
434 <td class="center">-</td>
435 <td class="center">X</td>
436 </tr>
437 <tr class="gradeX">
438 <td>Misc</td>
439 <td>Lynx</td>
440 <td>Text only</td>
441 <td class="center">-</td>
442 <td class="center">X</td>
443 </tr>
444 <tr class="gradeC">
445 <td>Misc</td>
446 <td>IE Mobile</td>
447 <td>Windows Mobile 6</td>
448 <td class="center">-</td>
449 <td class="center">C</td>
450 </tr>
451 <tr class="gradeC">
452 <td>Misc</td>
453 <td>PSP browser</td>
454 <td>PSP</td>
455 <td class="center">-</td>
456 <td class="center">C</td>
457 </tr>
458 <tr class="gradeU">
459 <td>Other browsers</td>
460 <td>All others</td>
461 <td>-</td>
462 <td class="center">-</td>
463 <td class="center">U</td>
464 </tr>
465 </tbody>
466 </table>
467 </div>
468 <div class="spacer"></div>
469
470
471 <h1>Initialisation code</h1>
472 <pre>$(document).ready( function () {
473 var oTable = $('#example').dataTable( {
474 "sScrollY": "300px",
475 "sScrollX": "100%",
476 "sScrollXInner": "1200px",
477 "bScrollCollapse": true,
478 "bPaginate": false
479 } );
480 new FixedColumns( oTable, {
481 "iLeftWidth": 150
482 } );
483 } );</pre>
484
485
486 <h1>Documentation</h1>
487 <ul>
488 <li><a href="http://datatables.net/extras/fixedcolumns">Usage</a></li>
489 <li><a href="http://datatables.net/docs/FixedColumns">API / parameters</a></li>
490 </ul>
491
492 <h1>Basic examples</h1>
493 <ul>
494 <li><a href="index.html">Basic demo of FixedColumns with zero initialisation</a></li>
495 <li><a href="left_right_columns.html">Fix the left and right columns in place</a></li>
496 <li><a href="index_column.html">Index column attached to side of the table</a></li>
497 <li><a href="x_y_scrolling.html">Index column, but with Y scrolling and no pagination</a></li>
498 <li><a href="two_columns.html">Two columns fixed in place</a></li>
499 <li><a href="right_column.html">Fix the right column in place</a></li>
500 <li><a href="css_size.html">Speeding up row height matching with CSS</a></li>
501 <li><a href="themed.html">jQuery UI themed table with FixedColumns</a></li>
502 </ul>
503
504 <h1>Advanced examples</h1>
505 <ul>
506 <li><a href="rowspan.html">Using ROWSPAN with FixedColumns</a></li>
507 <li><a href="server-side-processing.html">Server-side processing with FixedColumns</a></li>
508 <li><a href="col_filter.html">Individual column filtering</a></li>
509 <li><a href="scale_fixed.html">Setting the fixed column width and resizing the table</a></li>
510 <li><a href="scale_relative.html">Setting the fixed column width with relative sizing</a></li>
511 <li><a href="row_grouping_height.html">Row grouping by grouping like rows in the fixed column</a></li>
512 <li><a href="row_grouping.html">Row grouping by inserting a grouping row</a></li>
513 <ul>
514
515
516 <div id="footer" style="text-align:center;">
517 <span style="font-size:10px;">
518 FixedColumns and DataTables &copy; Allan Jardine 2011.<br>
519 </span>
520 </div>
521 </div>
522 </body>
523 </html>