{hero}

paging.numbers

Since: DataTables 2.1

Include (or not) the numbers in the paging control.

Description

The paging control for DataTables will show a set of numbers for pages in the table, allowing the end user to quickly jump between specific pages - e.g.:

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

In some cases you might wish to disable the number display, which can be done with this feature -e.g. the resulting layout for the paging buttons would be:

First Previous Next Last

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

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

Related

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