File: scrollCollapse.xml

package info (click to toggle)
datatables.js 1.10.13%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 6,232 kB
  • ctags: 1,329
  • sloc: xml: 10,249; php: 4,387; sh: 492; makefile: 21
file content (22 lines) | stat: -rw-r--r-- 955 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 down when the result set will fit 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>