@filter-change method
kikoseijo opened this issue · comments
working on filtering, when I receive the property its a bit rare the way to parse it.
reason to say so, you send back an object of type {filterName: filterValue}
When I receive the property I have to do something like:
filtersHandle(itemObject) {
for (let [k, v] of Object.entries(itemObject)) {
this.$refs.crudTable.params[k] = v;
this.$refs.crudTable.dataChangeHandler();
}
},
This is something could work better if we get something like:
filtersHandle(key, value) {
},
I mean, will be a bit cleaner and we can work an easy approach by simply if key === 'myFilter
Or maybe you can suggest a better approach Im not aware of.
Thanks again for this great package, makes life easier.