Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conditional Paging Idea: Applying Plugin to Multiple Class-Based DataTables? #522

Open
barronkid opened this issue May 5, 2021 · 0 comments

Comments

@barronkid
Copy link

barronkid commented May 5, 2021

@mjhasbach : What needs to be done for ConditionalPaging to work with multiple tables all appearing on one page?

In my situation, I have multiple dynamically-populated tables appearing all together on one page. These are all initiated/configured for DataTables functionality using a single javascript function that's applied based on a class selector instead of an element id value.

When I apply the current version of this plug-in to a specific single table, it appears to work properly, but when multiple tables appear, one under the threshold and one over it, the plug-in seems to apply uniformly to all tables, based on the number of rows in the first one that it encounters.

I'm not certain how to do this without mucking up your plug-in. I'd appreciate your time and or a patch/fork that would address the situation, if you are able.

P.S. I'd also really love to be able to set a variable in the Conditional Formatting section that would, for each table, dynamically set the pagination row quantity threshold equal to the smallest value set for the length/pagination menus.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant