File: scrollX.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 (29 lines) | stat: -rw-r--r-- 1,026 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?xml version="1.0" encoding="UTF-8" ?>
<dt-option group="feature">
	<name>scrollX</name>
	<summary>Horizontal scrolling</summary>
	<since>1.10</since>

	<type type="boolean">
		<description>
			* `false` - No horizontal scrolling
			* `true` - Enable horizontal scrolling in the table
		</description>
	</type>
	<default value="false" />

	<description>
		Enable horizontal scrolling. When a table is too wide to fit into a certain layout, or you have a large number of columns in the table, you can enable horizontal (x) scrolling to show the table in a viewport, which can be scrolled.

		This property can be `true` which will allow the table to scroll horizontally when needed (recommended), or any CSS unit, or a number (in which case it will be treated as a pixel measurement).
	</description>

	<example title="Enable horizontal scrolling"><![CDATA[
$('#example').dataTable( {
  "scrollX": true
} );
]]></example>

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