In manualFilter I want to pass filterVariant in setColumnFilters #78
Answered
by
KevinVandy
masterbater
asked this question in
Q&A
-
{
id: "client",
accessorKey: "fullname",
header: "Client",
filterFn: "equals",
filterVariant: "select",
mantineFilterSelectProps: {
data: clientList,
},
}, const [columnFilters, setColumnFilters] = useState<MRT_ColumnFiltersState>(
[]
); Hopefully it will return like this [
{
"id": "client",
"value": "5c35f40acf1e583f4a8a51d7"
"filterVariant": "select", // Add this
}
] This is useful for detection the filterFn or filterVariant and make the backend process it base on it |
Beta Was this translation helpful? Give feedback.
Answered by
KevinVandy
Jun 29, 2023
Replies: 2 comments 1 reply
-
Hopefully this will get supported but now I just make use of prisma dmmf |
Beta Was this translation helpful? Give feedback.
0 replies
-
All you have to do is read or manage the columnFilterFns state so this is already supported |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
masterbater
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
All you have to do is read or manage the columnFilterFns state so this is already supported