@mlink/datatables.net-scroller
Version:
Virtual scrolling plug-in for DataTables
31 lines (24 loc) • 1.1 kB
text/xml
<dt-option library="Scroller">
<name>scroller.boundaryScale</name>
<summary>Set the point at which new data will be loaded and drawn</summary>
<type type="number">
<description>
The boundary scale to use
</description>
</type>
<default value="0.5">
Load new data when scrolled halfway through the current data set.
</default>
<description>
Scroller uses the boundary scaling factor to decide when to redraw the table - which it typically does before you reach the end of the currently loaded data set (in order to allow the data to look continuous to a user scrolling through the data). If given as 0 then the table will be redrawn whenever the viewport is scrolled, while 1 would not redraw the table until the currently loaded data has all been shown. You will want something in the middle - the default factor of 0.5 is usually suitable.
</description>
<example title="Set a custom boundary scale point"><![CDATA[
$('#example').DataTable( {
scrollY: true,
scroller: {
boundaryScale: 0.75
}
} );
]]></example>
</dt-option>