user3312508 user3312508 - 1 month ago 22
jQuery Question

DataTable - change dropdown to links

I was wondering if the

Records per page
dropdown options can be changed to a set of links. I couldn't find anything related in the docs and would like to know if this is possible at all.

From this:

enter image description here

To this:

enter image description here

Answer

There doesn't seem to be an option for this, but you should be able to put it together using buttons and page.len()

https://datatables.net/reference/option/buttons.buttons

https://datatables.net/reference/api/page.len()