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 30 31 32 33 34 35 36
|
<?xml version="1.0" encoding="UTF-8" ?>
<dt-option group="option">
<name>pagingType</name>
<summary>Pagination button display options</summary>
<since>1.10</since>
<type type="string" />
<default value="simple_numbers" />
<description>
<![CDATA[
The pagination option of DataTables will display a pagination control below the table (by default, its position can be changed using `dt-init dom` and CSS) with buttons that the end user can use to navigate the pages of the table. Which buttons are shown in the pagination control are defined by the option given here.
DataTables has six built-in paging button arrangements:
* `string numbers` - Page number buttons only (<span class="since">1.10.8</span>)
* `string simple` - 'Previous' and 'Next' buttons only
* `string simple_numbers` - 'Previous' and 'Next' buttons, plus page numbers
* `string full` - 'First', 'Previous', 'Next' and 'Last' buttons
* `string full_numbers` - 'First', 'Previous', 'Next' and 'Last' buttons, plus page numbers
* `string first_last_numbers` - 'First' and 'Last' buttons, plus page numbers
Further methods can be added using plug-ins.
]]>
</description>
<example title="Use the `full_numbers` type of pagination control"><![CDATA[
$('#example').dataTable( {
"pagingType": "full_numbers"
} );
]]></example>
<related type="option">dom</related>
<related type="option">paging</related>
<related type="api">page()</related>
</dt-option>
|