X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=webapp%2Fresources%2Fdatatables-1.9.4%2Fextras%2FScroller%2Fstate_saving.html;fp=webapp%2Fresources%2Fdatatables-1.9.4%2Fextras%2FScroller%2Fstate_saving.html;h=ac99ac5fcde805ab49a0059e5d827d2e6c29f00b;hb=9bb6ee99ca7f738fac1087190b5481b8fe6e8d9f;hp=0000000000000000000000000000000000000000;hpb=2e3f6b76be585306f1003d849831840c0adb3360;p=proteocache.git diff --git a/webapp/resources/datatables-1.9.4/extras/Scroller/state_saving.html b/webapp/resources/datatables-1.9.4/extras/Scroller/state_saving.html new file mode 100644 index 0000000..ac99ac5 --- /dev/null +++ b/webapp/resources/datatables-1.9.4/extras/Scroller/state_saving.html @@ -0,0 +1,79 @@ + + +
+ + + +Scroller will automatically integrate with DataTables in order to save the scrolling position of the table, if state saving is enabled in the DataTable (bStateSave). This example shows that in practice - to demonstrate, scroll the table and then reload the page.
+ +ID | +First name | +Last name | +ZIP | +Country | +
---|
$(document).ready(function() { + var oTable = $('#example').dataTable( { + "sScrollY": "200px", + "sAjaxSource": "media/data/2500.txt", + "sDom": "frtiS", + "bDeferRender": true, + "bStateSave": true + } ); +} );+ + +