-
Is there a way to pre-populate filter options? I'd like to programmatically set/select some filter options on the click of a button, and/or have them pre-populated on load. Is there an example of this somewhere? |
Beta Was this translation helpful? Give feedback.
Answered by
kennsorr
Dec 5, 2023
Replies: 1 comment
-
Found a work around for this. Once the table is created using
Child component with
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
kennsorr
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Found a work around for this. Once the table is created using
useMaterialReactTable
, thetable
instance has asetState
method available that can be used to toggle/select the filterSelectOptions.Child component with
table
passed in as prop: