paging.buttons
Set the maximum number of paging number buttons.
Description
DataTables built in pagination control has the ability to show a variable amount of page number buttons. The default is 7, but you might want to show less depending on your layout. The number given should always be odd.
Please note that DataTables pagination control is responsive. It will automatically remove number buttons until the control fits onto a single line, as required by the page's layout.
Type
This option can be given in the following type(s):
Default
- Value:
7
Example
Show paging control with options:
new DataTable('#myTable', {
layout: {
bottomEnd: {
paging: {
buttons: 3
}
}
}
});
Related
The following options are directly related and may also be useful in your application development.