unovue / shadcn-vue

Vue port of shadcn-ui
https://www.shadcn-vue.com/
MIT License
5.23k stars 308 forks source link

[Feature]: Data Table with server side pagination/filter #910

Open keuteixeira opened 2 days ago

keuteixeira commented 2 days ago

Describe the feature

I searched through all the examples, but they all fetch the datatable from a JSON file. Is it possible to perform a server-side search to create pagination from a JSON datatable structure? And for filtering as well?

Additional information

Soviut commented 2 days ago

Instead of a json file, replace it with a call to your API.

For searching and filtering, you need to write a search endpoint on your API, call it, and take the results (most likely as JSON) and populate the table with them.