I'm currently using jQuery Datatable. I also use jquery ui to provide good theme. However, I want to disable (hide) the first
and last
button of the pagination from the table by using a bit customization on jquery library.
The problem is that the customization has only 2 methods: full_numbers
and two_button
.
So how can I get the pagination without the first
and last button
?
Any help would be very much appreciated.
Thanks
You have 4 options:
simple
- 'Previous' and 'Next' buttons onlysimple_numbers
- 'Previous' and 'Next' buttons, plus page numbersfull
- 'First', 'Previous', 'Next' and 'Last' buttonsfull_numbers
- 'First', 'Previous', 'Next' and 'Last' buttons, plus page numbersSo in your case :
$("#youridtable").dataTable(
{
"pagingType": "simple_numbers"
});
src: http://www.datatables.net/examples/basic_init/alt_pagination.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With