Since: DataTables 2.0.4

Set the maximum number of paging number buttons.


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.


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


  • Value: 7


Show paging control with options:

new DataTable('#myTable', {
	layout: {
		bottomEnd: {
			paging: {
				buttons: 3


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