Text input alternative for pagination
Text input alternative for pagination
polrobert
Posts: 7Questions: 2Answers: 0
Hello
I would like to have an alternative way of specifying the pagination for my table. Aside from the normal drop-down with the default values, I would like to be able to click on the box displaying the current pagination option, which would turn it into a text input box where I can set the pagination to a custom value. Is there any way to do this ?
This discussion has been closed.
Answers
http://datatables.net/plug-ins/pagination/input
I may have been misleading, what I meant was choosing the pagination option, i.e. choosing how many records are displayed per page. Thanks anyway.
I'm not sure if bumping is allowed but..
http://datatables.net/examples/advanced_init/length_menu.html
Still not what I'm looking for. I am not interested in predefined lengths, I am looking to also have the option to MANUALLY INPUT a custom number by also allowing the drop down selection to behave as an input form to allow for typing the number in.
Sure you can do it. Simply have an input element and then call
page.len()
to change the page length. If you want to change the page displayed callpage()
with the page number.Allan
I want the already existing drop-down page length selector to also behave as an input form to allow for custom page length to be manually entered.