Base solution for your next web application
Open Closed

JTable questions #3183


User avatar
0
joe704la created

I had a few Jtable questions.

I was wondering how to get the horizontal scrollbar to appear?

How do you change the colors of the table?

Can you change the height of the header so the header titles are not cut off if they go to two lines?


4 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    For the last 2 questions, you can play with jTable's css definitions. For horizontal scrollbar, we haven't tried it but you can use similar jQuery libraries like this one <a class="postlink" href="https://github.com/rochal/jQuery-slimScroll">https://github.com/rochal/jQuery-slimScroll</a>.

    Thanks.

  • User Avatar
    0
    joe704la created

    The horizontal scroll bar appears in the user table. How does that appear?

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Sorry, I somehow thought about vertical scroll bars :). There is a css definition for jTable in it's css

    .jtable-main-container
    {
        overflow-x: auto;
    }
    

    This adds horizontal scroll bars when needed. You can override it to be

    overflow-x: scroll;
    

    if you want it to always visible or you can do it for just one specific table "#myTableId .jtable-main-container".

    Thanks.

  • User Avatar
    0
    joe704la created

    Awesome, thank you