vue-table
vue-table copied to clipboard
Custom filtering or manage requests yourself possible?
I have read through the documentation and there are still two questions open for my use case.
- I need additional filtering, a date range picker together with the search filter
- I would need the filtered data separately to show some statistics in graphs
I assume that this is not possible. However would it be possible to manage the data fetching myself based on listening for actions and then passing the data in explicitly?
@arddor I'm not quite sure what you mean. But is this what you're looking for?
I don't think so. If I understood the intention of the module right data fetching is done through it. Filtering is done through Search
which does a textual search. What I would need is an additional filter field for time range
.
Secondly the data which is fetched from vue-table
I would need to access them for additional visualization in graphs, e.g. considering the example I would like to show a Pie Chart showing percentage of male / female based on the items in the table.
To summarise it:
- Can other filters apart from text search be defined?
- Can I somehow access the data fetched from
vue-table
@arddor Actually, all filtering are done from the server. vuetable always work with the server side (via api-url
prop) to request the data. In order for the filtering to work, the given API must support that via filter
query string.
So,
- you can filter anything as long as your API support it.
- you can access the data fetched via
tableData
. see here