Hello respected members! i want to restrict page number options in the Bootstrap Data Tables Pagination option.
Currently its showing like this: enter image description here
But I want to show like this: enter image description here
Thanks in advance
CodePudding user response:
You can use $.fn.DataTable.ext.pager.numbers_length = 5;
where 5
is number of displayed buttons (next, prev, 1,2 and 3)
live example link