vuejs-smart-table icon indicating copy to clipboard operation
vuejs-smart-table copied to clipboard

New features

Open realnot opened this issue 4 years ago • 1 comments

In future will be added features like server side filtering and pagination? Usually filters and pagination are parameters of query string that must be keep in sync with interface so when component is rendered filters are generated from the params of query string and so on the pagination.

Another cool features could be a set of predefined filters based on data type. For example for dates a filter that allow operators such as >, =, < to filter between a range of dates or a specific date. Another filter maybe for boolean fields or char fields (also the possibility to use a choices / drop down menu to select values for filter data with all the possible choices

Do you think there will be support for features like this in feature?

realnot avatar Jul 16 '20 15:07 realnot

Adding server-side filtering and pagination is on my TODO list. I hope I have time this holiday to add them.

I'm more hesitant about adding predefined filters based on the data type, mainly because we do have custom sorting functions so you can do that already. Maybe providing some util functions for common sorting would be the way to go, that way you can choose to use any of them as your custom sorting.

As for supporting dropdowns, I think this should be done in userland, we have a slot for the Header so you can replace the Header with a dropdown and use the API we already provide for filtering with it.

tochoromero avatar Dec 23 '20 12:12 tochoromero