Listening datatable search box clear event
-
Hi Everyone,
I want to save the search query on the vuex state on data table search box. I need an idea how you guys do it. and also once the clear button is clicked how can I listen to that click event? TIA
-
As far as I know, it is not possible at the moment to access the filter field on the
DataTable
component directly. It seems like you have to build your own or modify the existing solution, by overriding the behavior. -
How can I override it’s behavior?
-
You import the DataTable component in a new file and then do your changes and export it as your new component. But because the DataTable consists of multiple helper components, I am not sure this will work so easily.