How can I change the number of buttons (i.e. from 7 to 15) for pagination?

How can I change the number of buttons (i.e. from 7 to 15) for pagination?

jobstjobst Posts: 2Questions: 2Answers: 0

Hi

I just started using datatables ... I am kind of lost with all the info/manuals/references and amount of stuff you can do.

I did some searches on the net/datatables and came across a discussion on stackoverflow that explained that changing the number of buttons displayed can be done using the "elipses" plug-in, but reading the page for the plug-in it says it is deprecated and the features are inbuilt in DataTables 1.10 (which I am using).

I have tried to find the option/manual/reference on how to do change the number of buttons displayed , but there is not info about it. I have a width available for the table of about 1000px, so having 7 buttons is a little low.

So how can I change the number of buttons displayed?

thanks
Jobst

Answers

  • allanallan Posts: 61,765Questions: 1Answers: 10,111 Site admin
    edited January 2015

    In theory there is $.fn.DataTable.ext.pager.numbers_length to be able to do this, but it isn't fully implemented yet (a bug), unfortunately there isn't a way to do that using the built in control until I (or someone else?!) fixes it.

    Allan

This discussion has been closed.