Skip to content

True infinite loading via AJAX/REST? #17

@don-p

Description

@don-p

@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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions