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

True infinite loading via AJAX/REST? #17

Open
don-p opened this issue Nov 7, 2018 · 1 comment
Open

True infinite loading via AJAX/REST? #17

don-p opened this issue Nov 7, 2018 · 1 comment

Comments

@don-p
Copy link

don-p commented Nov 7, 2018

@cheton

I've looked at the various examples, but there isn't one showing how to load "pages" of external data, in order to make a true "infinite scrolling" tree.

I've implemented infinite scrolling "flat" lists before, but it seems there would be some complications with a tree - how do we know which data set is scrolling and needs to be loaded? For example, If I have expanded a node at level 2 of a tree, and this node has 1 million children, preferably I'd load a "page" of children, and then when scrolling past the bottom boundary I'd start loading more of the children, which would be concatenated to the children[] array. However, it's not clear to me how the component could know which level of nodes (root, level 1, level 2, etc.) should be loaded on scroll.

Can you provide an explanation and example of how to use your component to implement a true "infinite scrolling tree" with loading external data?

Thanks.

@Thalandor
Copy link

A bit late but...did you solve the issue?

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