@mlink/datatables.net-scroller
Version:
Virtual scrolling plug-in for DataTables
29 lines (22 loc) • 794 B
text/xml
<dt-example table-type="scroller" table-class="display nowrap" order="2">
<css lib="datatables scroller" />
<js lib="jquery datatables scroller">
<![CDATA[
$(document).ready(function() {
$('#example').DataTable( {
ajax: "../data/2500.txt",
deferRender: true,
scrollY: 200,
scrollCollapse: true,
scroller: true,
stateSave: true
} );
} );
]]>
</js>
<title lib="Scroller">State saving</title>
<info><![CDATA[
Scroller will automatically integrate with DataTables in order to save the scrolling position of the table, if state saving is enabled in the DataTable (`dt-init stateSave`). This example shows that in practice - to demonstrate, scroll the table and then reload the page.
]]></info>
</dt-example>