{hero}

paging.type

Since: DataTables 2.0

Paging button display options.

Deprecated!

As of v2.1 this feature has been deprecated. This feature will be removed from version 3.0.

Description

The paging feature of DataTables will display a pagination control 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:

  • numbers - Page number buttons only (1.10.8)
  • simple - 'Previous' and 'Next' buttons only
  • simple_numbers - 'Previous' and 'Next' buttons, plus page numbers
  • full - 'First', 'Previous', 'Next' and 'Last' buttons
  • full_numbers - 'First', 'Previous', 'Next' and 'Last' buttons, plus page numbers
  • first_last_numbers - 'First' and 'Last' buttons, plus page numbers

The pagingType option is an alias to this option for all paging controls shown by the table. This option provides control on a per instance basis should you wish to show multiple paging controls for table.

Type

This option can be given in the following type(s):

Default

Defaults to the pagingType option's value.

Example

Show next and previous buttons only:

new DataTable('#myTable', {
	layout: {
		bottomEnd: {
			paging: {
				type: 'simple'
			}
		}
	}
});

Related

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