File: scrollCollapse.xml

package info (click to toggle)
datatables.js 1.11.5%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 22,848 kB
  • sloc: javascript: 65,075; xml: 10,712; php: 4,741; sh: 544; makefile: 18
file content (22 lines) | stat: -rw-r--r-- 947 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?xml version="1.0" encoding="UTF-8" ?>
<dt-option group="option">
	<name>scrollCollapse</name>
	<summary>Allow the table to reduce in height when a limited number of rows are shown.</summary>
	<since>1.10</since>

	<type type="boolean" />
	<default>false</default>

	<description>
		When vertical (y) scrolling is enabled through the use of the `dt-init scrollY` option, DataTables will force the height of the table's viewport to the given height at all times (useful for layout). However, this can look odd when filtering data down to a small data set, and the footer is left "floating" further down. This parameter (when enabled) will cause DataTables to collapse the table's viewport when the result set fits within the given Y height.
	</description>

	<example title="Enable state saving"><![CDATA[
$('#example').dataTable( {
  scrollY: 300,
  scrollCollapse: true
} );
]]></example>

	<related type="option">scrollY</related>
</dt-option>