File: pageLength.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 (28 lines) | stat: -rw-r--r-- 925 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
<?xml version="1.0" encoding="UTF-8" ?>
<dt-option group="option">
	<name>pageLength</name>
	<summary>Change the initial page length (number of rows per page)</summary>
	<since>1.10</since>

	<type type="integer" />
	<default value="10" />

	<description>
		Number of rows to display on a single page when using pagination.

		If `dt-init lengthChange` is feature enabled (it is by default) then the end user will be able to override the value set here to a custom setting using a pop-up menu (see `dt-init lengthMenu`).
	</description>

	<example title="Show 50 records per page"><![CDATA[
$('#example').dataTable( {
  "pageLength": 50
} );
]]></example>

	<related type="option">lengthChange</related>
	<related type="option">lengthMenu</related>
	<related type="option">paging</related>
	<related type="api">page()</related>
	<related type="api">page.info()</related>
	<related type="api">page.len()</related>
</dt-option>