Filter on datatable not working
Closed this issue · 16 comments
thComp: FilterTh
using that already on title field
not string, it's exactly the variable FilterTh
or else you have to register it: components: { FilterTh }
the data rows should be filtered in either the back end or front end according to this.query
but no call going on the server with the update fileter
e.g. this.set(this.query, 'title', <keywords for search>)
or, if you use Vuex, just emit an action to trigger filtering this.data
(front-end filtering)
Your filter logic has nothing to do with this project, so I might not help with that
This datatable is just for displaying
Actually query is updating with the filtered value, but it is not filtering data
Yes, and you need to filter the rows yourself
Ok got it, bundle of thanks for the help
e.g. this.data = <originalRows>.filter(row => row.title.includes(query.title))