Skip to content

Persistent filterBuilder on TableHandler #185

Description

@MrVauxs

When building a modal containing various filters, I have come to a snag. The modal is recreated on each render, creating a new instance of any filters defined therein. TableHandler does not have any prior knowledge of those previous filters, making it impossible to toggle previous filters on or off.

It would be great to have something akin to a .filterBuilders property on the TableHandler class, which keeps the built filters on itself. It would probably have to be an Array or Map, given TableHandler supports multiple filters on the same property, so no Record types.

It would also be great to give filters an identifier, so in an event a duplicate filter is created, it is reused rather than made again. So if you make an table.createAdvancedFilter("sources" , check, { id: "sourceSearch" });, it would grab any previously made sourceSearch filters from the TableHandler class, rather than creating a new one and causing issues if you already had filters linked to it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions