Below is the object I use.
{
dataField: "hostname",
text: "hostName",
filter: textFilter({
placeholder: t("hostName"),
caseSensitive: true,
delay: 3000,
onFilter: (filterValue) => console.log("Filter value: ", filterValue)
}),
}
I want to achieve validation check before filtering. onFilter property seems to be working only after filtering is done.
Following this implementation of Custom Filter, I was able to implement a validation mechanism before calling
filtermethod. Here is the code in case link breaks.