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

    (@tobiasbg)

    Hi,

    thanks a lot for your post!

    Unfortunately, I could check your link, as it just gives a “Not found” error, probably because it’s not a published page. Regardless, I know what you are talking about, so that’s no problem.

    I can see what you are trying to achieve, and indeed this is not included as a feature currently, as this is not part of the original behavior of the DataTables JavaScript library (which offers these features). The reason probably is that the “Show xy entries” dropdown is independent from the default value that one can choose, as that value is reflected in the info bar below the table.
    I do however agree that it would be a good idea to include the initial value that one set into that dropdown! I’ll check if I can add this to the plugin for the next version. Thanks a lot for your suggestion!

    Meanwhile, you can add this to the table manually. Please add the following code to the “Custom Commands” textfield in the “Features of of the DataTables JavaScript library” section on the “Edit” screen of the table:

    "aLengthMenu": [[10, 20, 25, 50, 100], ["10", "20", "25", "50", "100"]]

    It will add “20” to the menu and automatically select that.

    Regards,
    Tobias

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    good news ?? I just added this enhance to TablePress!

    If you want, you can already use it by installing the current TablePress Development version (which is TablePress 0.9-RC plus that new enhancement). You can download it at https://tablepress.org/download/tablepress-dev.zip

    Just extract it and replace your “tablepress” plugin folder on your server with the one from the ZIP file.
    That extra command that I mentioned above will then no longer be necessary, as TablePress will add the drop down entry automatically.

    Regards,
    Tobias

    This didn’t seem to work for me with version “0.9-RC”, but adding custom command did. Thanks for the nice plugin!

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    yes, this is not yet part of 0.9-RC, but will be part of TablePress 1.0 which will be released in the next few days or so.

    Best wishes,
    Tobias

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘"Show entries" should follow configuration’ is closed to new replies.