paging.previousNext
Include (or not) the previous and next buttons in the paging control.
Description
The paging control for DataTables will show Previous and Next buttons in the paging control along with the other buttons - e.g. by default it looks like:
First Previous 1 ... 5 6 7 ... 23 Next Last
In some cases you might wish to disable the previous and next buttons, which can be done with this feature. If done, the resulting layout for the paging buttons would be:
First 1 ... 5 6 7 ... 23 Last
This option can be combined with paging.firstLast
and paging.numbers
to provide complete control over the buttons that are shown in the paging control.
Please note that if paging.type
or pagingType
are set, this option will have no effect.
Type
This option can be given in the following type(s):
Default
- Value:
true
Example
Disable the previous and next buttons, leaving just the first, last and number buttons.:
new DataTable('#myTable', {
layout: {
bottomEnd: {
paging: {
previousNext: false
}
}
}
});
Related
The following options are directly related and may also be useful in your application development.