Approach for DataGrid with remote data #334
Replies: 3 comments 2 replies
-
Made a quick POC with PR #331 |
Beta Was this translation helpful? Give feedback.
-
The other option that we could look at would be to add a |
Beta Was this translation helpful? Give feedback.
-
In my head I like the idea of letting everything be controlled with a funciton (or hook), then we have a contract for anything that can be paginated and anything that uses pagination ... we could have a beautiful set of card search results like AirBnB or the rows in the DataGrid and both views could use the same paginated function? In the same line... if it's even more generic than just pagination it could be used for filtering and fetching remote data for the charts and tables... there's a default function that handles it from Pagination is really just adding a |
Beta Was this translation helpful? Give feedback.
-
What should the approach for loading remote data to populate the DataGrid?
I'm kinda in the camp that if we make
rows
optional, we can then allow devs to pass in a pagination function in lieu of the default one that slices the rows:For example
Beta Was this translation helpful? Give feedback.
All reactions