{hero}

paging.firstLast

Since: DataTables 2.1

Include (or not) the first and last buttons in the paging control.

Description

The paging control for DataTables will show First and Last 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 first and last buttons, which can be done with this feature. If done, the resulting layout for the paging buttons would be:

Previous 1 ... 5 6 7 ... 23 Next

This option can be combined with paging.numbers and paging.previousNext 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 first and last buttons, leaving just the previous, next and number buttons.:

new DataTable('#myTable', {
	layout: {
		bottomEnd: {
			paging: {
				firstLast: false
			}
		}
	}
});

Related

The following options are directly related and may also be useful in your application development.