Skip to content

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

Open
@barronkid

Description

@barronkid

@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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions