UNPKG

@mlink/datatables.net-scroller

Version:

Virtual scrolling plug-in for DataTables

39 lines (30 loc) 1.31 kB
<?xml version="1.0" encoding="UTF-8" ?> <dt-option library="Scroller"> <name>scroller.rowHeight</name> <summary>Set the row height, or how the row height is calculated</summary> <type type="integer"> <description> Row height - pixels </description> </type> <type type="string"> <description> As a string this option can only be the value `-string auto`, which will instruct Scroller to determine the row height automatically. </description> </type> <default value="auto"> Compute the row height automatically. </default> <description> It is important for Scroller to know the height of the rows in the DataTable so it can perform its virtual display calculations. All rows must be of the same height, and Scroller will attempt to automatically calculate the height of rows itself. However, the value that is used can be overridden using this parameter. Generally it is not recommended that this be used - it offers little in the way of performance enhancements, although it can be useful if styling that alters the height of the rows is applied to the table after initialisation. </description> <example title="Set the row height to a specific pixel value"><![CDATA[ $('#example').DataTable( { scrollY: true, scroller: { rowHeight: 30 } } ); ]]></example> </dt-option>