Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serverside loading #774

Open
tomadmiraal opened this issue Apr 5, 2024 · 1 comment
Open

Serverside loading #774

tomadmiraal opened this issue Apr 5, 2024 · 1 comment

Comments

@tomadmiraal
Copy link

Is it possible to load data via an ajax call (serverside loading)?

We have lists with 10 thousands of records. It is not possible for us to load these in one go.

Unfortunately I couldn't find anything about it in the documentation

@coxy17
Copy link

coxy17 commented Aug 24, 2024

Hi, I would grab the json data via a file or server side using Javascript fetch api https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch

then return the json data and append the json data into one long data object and then pass into the list as 'jsonValues'.
var userList = new List('mylist', options, jsonValues);

then use https://listjs.com/api/#indexAsync for larger lists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants