| 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 |
<link rel="stylesheet" type="text/css" href="../../../examples/resources/syntax/shCore.css">
|
|
|
8 |
<link rel="stylesheet" type="text/css" href="../../../examples/resources/demo.css">
|
|
|
9 |
<script type="text/javascript" language="javascript" src="//code.jquery.com/jquery-1.11.3.min.js"></script>
|
|
|
10 |
<script type="text/javascript" language="javascript" src="../../../examples/resources/syntax/shCore.js"></script>
|
|
|
11 |
<script type="text/javascript" language="javascript" src="../../../examples/resources/demo.js"></script>
|
|
|
12 |
|
|
|
13 |
<title>Scroller examples - Scroller examples</title>
|
|
|
14 |
</head>
|
|
|
15 |
|
|
|
16 |
<body class="dt-example">
|
|
|
17 |
<div class="container">
|
|
|
18 |
<section>
|
|
|
19 |
<h1>Scroller example <span>Scroller examples</span></h1>
|
|
|
20 |
|
|
|
21 |
<div class="info">
|
|
|
22 |
<p>Scroller is a virtual rendering plug-in for DataTables which allows large datasets to be drawn on screen every quickly. What the virtual rendering means is that
|
|
|
23 |
only the visible portion of the table (and a bit to either side to make the scrolling smooth) is drawn, while the scrolling container gives the visual impression
|
|
|
24 |
that the whole table is visible. This is done by making use of the pagination abilities of DataTables and moving the table around in the scrolling container
|
|
|
25 |
DataTables adds to the page. The scrolling container is forced to the height it would be for the full table display using an extra element.</p>
|
|
|
26 |
|
|
|
27 |
<p>Scroller is initialised by simply including the letter <code>S</code> in the <a href="//datatables.net/reference/option/dom"><code class="option" title=
|
|
|
28 |
"DataTables initialisation option">dom</code></a> for the table you want to have this feature enabled on. Note that the <code>S</code> must come after the
|
|
|
29 |
<code>t</code> parameter in <a href="//datatables.net/reference/option/dom"><code class="option" title="DataTables initialisation option">dom</code></a>.</p>
|
|
|
30 |
|
|
|
31 |
<p>Key features include:</p>
|
|
|
32 |
|
|
|
33 |
<ul class="markdown">
|
|
|
34 |
<li>Speed! The aim of Scroller for DataTables is to make rendering large data sets fast</li>
|
|
|
35 |
<li>Full compatibility with DataTables' deferred rendering for maximum speed</li>
|
|
|
36 |
<li>Integration with state saving in DataTables (scrolling position is saved)</li>
|
|
|
37 |
<li>Easy to use</li>
|
|
|
38 |
</ul>
|
|
|
39 |
</div>
|
|
|
40 |
</section>
|
|
|
41 |
</div>
|
|
|
42 |
|
|
|
43 |
<section>
|
|
|
44 |
<div class="footer">
|
|
|
45 |
<div class="gradient"></div>
|
|
|
46 |
|
|
|
47 |
<div class="liner">
|
|
|
48 |
<div class="toc">
|
|
|
49 |
<div class="toc-group">
|
|
|
50 |
<h3><a href="./initialisation/index.html">Initialisation</a></h3>
|
|
|
51 |
<ul class="toc">
|
|
|
52 |
<li><a href="./initialisation/simple.html">Basic initialisation</a></li>
|
|
|
53 |
<li><a href="./initialisation/state_saving.html">State saving</a></li>
|
|
|
54 |
<li><a href="./initialisation/large_js_source.html">Client-side data source (50,000 rows)</a></li>
|
|
|
55 |
<li><a href="./initialisation/server-side_processing.html">Server-side processing (5,000,000 rows)</a></li>
|
|
|
56 |
<li><a href="./initialisation/api_scrolling.html">API</a></li>
|
|
|
57 |
<li><a href="./initialisation/fixedColumns.html">FixedColumns integration</a></li>
|
|
|
58 |
</ul>
|
|
|
59 |
</div>
|
|
|
60 |
|
|
|
61 |
<div class="toc-group">
|
|
|
62 |
<h3><a href="./styling/index.html">Styling</a></h3>
|
|
|
63 |
<ul class="toc">
|
|
|
64 |
<li><a href="./styling/bootstrap.html">Bootstrap</a></li>
|
|
|
65 |
<li><a href="./styling/foundation.html">Foundation</a></li>
|
|
|
66 |
<li><a href="./styling/jqueryui.html">jQuery UI</a></li>
|
|
|
67 |
</ul>
|
|
|
68 |
</div>
|
|
|
69 |
</div>
|
|
|
70 |
|
|
|
71 |
<div class="epilogue">
|
|
|
72 |
<p>Please refer to the <a href="http://www.datatables.net">DataTables documentation</a> for full information about its API properties and methods.<br>
|
|
|
73 |
Additionally, there are a wide range of <a href="http://www.datatables.net/extensions">extensions</a> and <a href=
|
|
|
74 |
"http://www.datatables.net/plug-ins">plug-ins</a> which extend the capabilities of DataTables.</p>
|
|
|
75 |
|
|
|
76 |
<p class="copyright">DataTables designed and created by <a href="http://www.sprymedia.co.uk">SpryMedia Ltd</a> © 2007-2015<br>
|
|
|
77 |
DataTables is licensed under the <a href="http://www.datatables.net/mit">MIT license</a>.</p>
|
|
|
78 |
</div>
|
|
|
79 |
</div>
|
|
|
80 |
</div>
|
|
|
81 |
</section>
|
|
|
82 |
</body>
|
|
|
83 |
</html>
|