• Resolved makaulius

    (@makaulius)


    Hello,
    Having an issue where mobile scrolling works on ‘dataTables_scrollBody’ but not on ‘dataTables_scrollHead’. Any ideas for a quick resolution? Thank you!

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

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

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Do you mean that (e.g. with a swiping mouse or a trackpad) scrolling left/right while the mouse cursor is hovering above the table header doesn’t do anything? That’s indeed correct. At the moment, only the table body will trigger the scrolling. I’m looking into ways to make this possible though. (This is a bit complex, due to the involved JavaScript code. Note that the Scroll mode of the Responsive Tables premium feature module does not suffer from this problem, so it might be an alternative, if this is a vital issue. By the way, using that might make your site faster, as it works without having to load JavaScript code.)

    Or did you mean something else?

    Regards,
    Tobias

    Thread Starter makaulius

    (@makaulius)


    Understood. It appears to be a Datatables plugin issue. I’ll investigate and attempt to find a solution for the problem.

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    correct, it would be a DataTables issue. If you find a solution, please let me know as well. Thanks!

    Best wishes,
    Tobias

    Thread Starter makaulius

    (@makaulius)

    Hello again,

    Could you please help me in completely removing ‘js/jquery.datatables.min.js’ from loading in my custom theme? I wish to implement a simple scrolling with CSS and do not intend to use any other datatables features in my theme.

    I attempted to use wp_dequeue_script(), but it seems that the script is still loading due to a shortcode.

    Thank you for your help.

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    if you want to prevent that, just turn off the “Enable Visitor features” checkbox on the table’s “Edit” screen.

    As the JS file is indeed loaded when the Shortcode is evaluated, just dequeueing this script will not work.

    Regards,
    Tobias

    Thread Starter makaulius

    (@makaulius)

    Thank you for your support.

    What do you think about having all tables wrapped by default and applying the following styles to the wrap:

    width: 100%;
    overflow: auto;

    Is there a function for filtering and printing tables in HTML? If not, I will add a wrapper with JavaScript.

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    at the moment, I do not have plans to add such a general wrapper.

    I’m not sure what you mean with “function for filtering and printing tables in HTML”, but it sounds as if you are looking for e.g. the tablepress_table_output plugin filter hook in TablePress. You could use that to add such a wrapper element and you wouldn’t need JavaScript code then.

    Best wishes,
    Tobias

    Thread Starter makaulius

    (@makaulius)

    Exactly, that’s what I needed. My problem is solved.

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! 🙂 Good to hear that this helped!

    Best wishes,
    Tobias

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

The topic ‘Scrolling issue with ‘dataTables_scrollHead’’ is closed to new replies.