index.html 3.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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="../../../media/js/jquery.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. <title>Scroller examples - Scroller examples</title>
  13. </head>
  14. <body class="dt-example">
  15. <div class="container">
  16. <section>
  17. <h1>Scroller example <span>Scroller examples</span></h1>
  18. <div class="info">
  19. <p>Scroller is a virtual rendering plug-in for DataTables which allows large datasets to be drawn on
  20. screen every quickly. What the virtual rendering means is that only the visible portion of the table
  21. (and a bit to either side to make the scrolling smooth) is drawn, while the scrolling container gives
  22. the visual impression that the whole table is visible. This is done by making use of the pagination
  23. abilities of DataTables and moving the table around in the scrolling container DataTables adds to the
  24. page. The scrolling container is forced to the height it would be for the full table display using an
  25. extra element.</p>
  26. <p>Scroller is initialised by simply including the letter <code>S</code> in the <a href=
  27. "//datatables.net/reference/option/dom"><code class="option" title=
  28. "DataTables initialisation option">dom<span>DT</span></code></a> for the table you want to have this
  29. feature enabled on. Note that the <code>S</code> must come after the <code>t</code> parameter in
  30. <a href="//datatables.net/reference/option/dom"><code class="option" title=
  31. "DataTables initialisation option">dom<span>DT</span></code></a>.</p>
  32. <p>Key features include:</p>
  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. <section>
  43. <div class="footer">
  44. <div class="gradient"></div>
  45. <div class="liner">
  46. <div class="toc">
  47. <div class="toc-group">
  48. <h3><a href="./index.html">Examples</a></h3>
  49. <ul class="toc">
  50. <li><a href="./simple.html">Basic initialisation</a></li>
  51. <li><a href="./state_saving.html">State saving</a></li>
  52. <li><a href="./large_js_source.html">Client-side data source (50,000 rows)</a></li>
  53. <li><a href="./server-side_processing.html">Server-side processing (5,000,000
  54. rows)</a></li>
  55. <li><a href="./api_scrolling.html">API</a></li>
  56. </ul>
  57. </div>
  58. </div>
  59. <div class="epilogue">
  60. <p>Please refer to the <a href="http://www.datatables.net">DataTables documentation</a> for full
  61. information about its API properties and methods.<br>
  62. Additionally, there are a wide range of <a href="http://www.datatables.net/extras">extras</a> and
  63. <a href="http://www.datatables.net/plug-ins">plug-ins</a> which extend the capabilities of
  64. DataTables.</p>
  65. <p class="copyright">DataTables designed and created by <a href=
  66. "http://www.sprymedia.co.uk">SpryMedia Ltd</a> &#169; 2007-2014<br>
  67. DataTables is licensed under the <a href="http://www.datatables.net/mit">MIT license</a>.</p>
  68. </div>
  69. </div>
  70. </div>
  71. </section>
  72. </body>
  73. </html>