How to change the number of pagination buttons of the DataTables jQuery plugin

后端 未结 3 1514
温柔的废话
温柔的废话 2020-12-14 09:00

By default, DataTables plugin shows 7 paging buttons (including the ellipses) like

Previous 1 2 3 <

3条回答
  •  借酒劲吻你
    2020-12-14 09:57

    apparently the ideal minimum for DataTableJS is:

    $.fn.DataTable.ext.pager.numbers_length = 5;
    

提交回复
热议问题