How to change results per page value in datatables

前端 未结 7 1129
日久生厌
日久生厌 2021-01-30 21:35

Datatables has an option to select the number of records shown per page. The default value starts from 10, 25, 50 and 100. How can I change it to start from 5 instead of 10? 10

7条回答
  •  萌比男神i
    2021-01-30 21:55

    I realize that this question is old, but the accepted answer does not answer the OP's question.

    The answer is to override the aLengthMenu option when initializing the dataTable. See here: http://datatables.net/examples/advanced_init/length_menu.html

提交回复
热议问题