• Resolved infinitetk

    (@infinitetk)


    Hello,

    I’ve recently installed TablePress on my website and used it to create multiple single column tables that have links to different articles on my website on each line.

    I’ve placed the tables side by side using the column feature in the new WordPress editor.

    I am wanting to limit the table height by only letting it show 5 line items while the rest can be accessible with a vertical scroll.

    So a table with 10 lines should show only 5 and the user can scroll down to see more just like you do on a browser.

    Is this possible to do? I would really appreciate it if you could help me out.

    Thank you very much!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Yes, that’s possible! You can add the datatables_scrolly parameter to the Shortcode for this, like

    [table id=123 datatables_scrolly=400px /]
    

    The value defines the height of the scrollable container.

    Regards,
    Tobias

    Thread Starter infinitetk

    (@infinitetk)

    Hi @tobiasbg, thank you so much for getting back to me I just added this to the shortcode and refreshed the page, I see the additional entries I’ve made show up but they’re extending the length of the table. I do not see a vertical scroll. I added the code directly for the table on the page where the table is called from the shortcode. Am I doing something wrong? Thanks again!

    Thread Starter infinitetk

    (@infinitetk)

    Tried changing the length to 100 px as well, but it’s still not showing a scroll

    Thread Starter infinitetk

    (@infinitetk)

    ah nevermind, figured it out. I did not know that I had to enable the datatables library haha. I looked at one of your responses here: https://wordpress.org/support/topic/how-to-enable-a-vertical-scroll-bar/

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    ah, yes, I forgot to mention that, sorry. Good to hear that it’s working now! 🙂

    Best wishes,
    Tobias

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

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Vertical Scroll on table’ is closed to new replies.