• Resolved thefish76

    (@thefish76)


    By default, it seems, a user can select 10, 25, 50 and 100 rows for pagination. Is it possible to amends these options? I would like the options of 5, 10, 15, 20 and All – Ive already used the plugin to show all.
    Thanks,
    Martin

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    For that, please add this to the “Custom Commands” text field on the table’s “Edit” screen:

    "lengthMenu": [ [ 5, 10, 15, 20, -1], [ 5, 10, 15, 20, "All" ] ]
    

    You’ll then get the selection options 5, 10, 15, 20, and “All”.
    You can then also remove the “Pagination Length Change “All” Entry” TablePress Extension again, as that functionality is then integrated in this command.

    Regards,
    Tobias

    Thread Starter thefish76

    (@thefish76)

    Oh thank-you! I was trying to see if I could manage cumulative layout shift better with pagination on – but it does not seem to make a difference so I have turned pagination off again. However I will have a play with the ‘custom commands’.

    Many thanks!

    I love TablePress!

    Martin

    Thread Starter thefish76

    (@thefish76)

    Resolved!

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! ??

    Best wishes,
    Tobias
    ?
    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Change Option Values in Pagination’ is closed to new replies.