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
Understood. It appears to be a Datatables plugin issue. I’ll investigate and attempt to find a solution for the problem.
Hi,
correct, it would be a DataTables issue. If you find a solution, please let me know as well. Thanks!
Best wishes,
Tobias
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.
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
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.
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
Exactly, that’s what I needed. My problem is solved.
Hi,
no problem, you are very welcome! 🙂 Good to hear that this helped!
Best wishes,
Tobias