Different page number links in desktop and mobile view?

Different page number links in desktop and mobile view?

asleasle Posts: 75Questions: 24Answers: 0

I want to display only 3 pagination links in mobile view but standard number of page number links in desktop view. My table is using responsive. I cah set standard page numbers with this code. But how can I set a page.numbers_length depending on the view?

$.fn.DataTable.ext.pager.numbers_length = 4;

How can I set this value only in mobile view? I don't want to hide them, just show fewer page number links.

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 56,837Questions: 1Answers: 9,033 Site admin
    Answer ✓

    At the moment you can't I'm afraid. I agree though, the paging component needs to be more responsive. It is something that is on the cards for a feature release.

    Allan

Sign In or Register to comment.