4 ms·
Correct. I have a PR ready which integrates the sort, search and pagination with the server-side module. Currently, there is a Server Side module that pulls dat
by afshinmeh 6y ago
Correct. I have a PR ready which integrates the sort, search and pagination with the server-side module. Currently, there is a Server Side module that pulls data from the server (https://gridjs.io/docs/examples/server https://gridjs.io/docs/examples/server).
- freedomben 6y agowhen you say "server-side" do you mean this is typescript that runs on the server? thus requiring a node-based server?
- afshinmeh 6y agoNot necessarily, any HTTP interface that can return JSON (e.g. Python Flask, PHP, etc)
- _bxg1 6y agoQuick tip: for the client-side, large dataset case, if you want to get fancy it's possible to create a worker thread and perform the sort there, which makes it somewhat faster but more importantly stops it from freezing up the tab while it operates. We did this to great success at my last company when we needed to sort ~200,000 items client-side. The UI thread remained perfectly responsive during the operation and we were able to present the user with a loading spinner while it worked.