• Resolved pre20

    (@pre20)


    Hi, I have two questions:

    – I have a table with many data and when I navigate throughout the Previous/Next, the height of the table changes so I need to scroll up or down to find the navigation buttons again. Is there any way to fix that?

    – Is there any difference between selecting the “Enable horizontal scrolling” on each table or installing the Responsible Tables plugin and use the scroll mode?

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    1) Unfortunately, no. This simply is caused by the changing heights. The only suggestion that I can make here would be to move the pagination buttons to the top of the table. For that, you can add this to the “Custom Commands” text field on the table’s “Edit” screen:

    "dom": "lfrpti"
    

    (see https://datatables.net/reference/option/dom for the documentation on this).

    2) The difference essentially is the technical way how the scrolling is added. The checkbox does it with JavaScript code, the scroll mode with just CSS code. This is especially useful if no other JavaScript features are used, as not JS would have to be loaded then.

    Regards,
    Tobias

    Thread Starter pre20

    (@pre20)

    Ok, thanks! I already have one of those dom on my table, how to make both work at same time? I added on different lines and only works the first one.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    if you already have one, you’ll just need to move the letter p to before the letter t.

    Regards,
    Tobias

    Thread Starter pre20

    (@pre20)

    I tried it but I don’t understand what do you mean as the other dom doesn’t have p and t.
    I would like to use this two together: “dom”: “lfrtBip” & “dom”: “lfrpti”
    Thanks

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    I mean the letters in the value of the "dom" command ?? Just move the letters there to new positions, i.e. use

    "dom": "lfrptBi"
    

    for example.

    Regards,
    Tobias

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Navigation and Scrolling’ is closed to new replies.