Home > Software design >  How to restrict page number options in Bootstrap 4 DataTables Pagination
How to restrict page number options in Bootstrap 4 DataTables Pagination

Time:07-17

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

  • Related