kouts / vue-dataset

A set of Vue.js components to display datasets (lists) with filtering, paging, and sorting capabilities!
https://next--vue-dataset-demo.netlify.app/
MIT License
220 stars 25 forks source link

What is the returned data object after I run a filter function? #95

Closed gerdsuhr closed 1 year ago

gerdsuhr commented 2 years ago

Hi, after I execute a filter function I need to use the returned (filtered) data object in another vue method. Can you show example snippet of how this is done? IE.. Using "ds-data" or "dsData" does not seem to work. What is the returned data object after filtering it?
As an example, after running the filter function, in another method how do I console.log that filtered data set?

Thanks

kouts commented 2 years ago

Hello @gerdsuhr, a feature that would return the data object through e.g an event is not available in vue-dataset. I think it's something that's probably worth implementing in future releases.

kouts commented 1 year ago

There's now an update:dsData event that returns the filtered data. @gerdsuhr you can check the example here https://github.com/kouts/vue-dataset/blob/6a37b323b62bbbc8aa4dbec872b98547c22cadc4/playground/views/Example2.vue#L16.