Saving/Retrieving Filter Pill state #2267
Michael-Ban
started this conversation in
General
Replies: 1 comment
-
There's some backend methods, someone else requested this recently so its on my to-do list to document etc |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm building a table with over 10 filter options and want to implement a feature that allows saving the current filter state—not in the session, but within a separate dropdown menu. This way, selecting an option like custom_filter_1 would restore the previously applied filters.
I attempted to use the getTableStateToArray() method, which is designed to capture complex filter configurations. However, it doesn't seem to save the states of the filter pills.
Is there a way to store the active filter pills? Additionally, is there a function to apply all filters at once from an array, similar to how getTableStateToArray() and restoreStateFromArray() operate? Alternatively, would it be more straightforward to include the filter pill states within these functions?
I have been digging through documentations, but let me know if I miss some useful methods for this.
Beta Was this translation helpful? Give feedback.
All reactions