-
Notifications
You must be signed in to change notification settings - Fork 49
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
Is there any way to add data later? #32
Comments
@nutmix , did you work this out? anything to share? |
We could not find a way to add data dynamically, e.g. to allow data to be pulled in as nodes are opened. Instead, we recreate the entire tree each time any data changes (its horrible but works). We can only assume this component, although great, is only designed to support showing static data. `/**
document.getElementById("loading").innerHTML=""; } // renderData() // filter what tree shows based on inputTextFilter
};` |
All the examples except the Ajax one need the tree data structure to be defined prior to creating the tree object.
We cant use the ajax option as the data returned from the ajax APi needs transformation into the right json format.
We use fetch to get the required data, then format it into the right data structure in the promise, then we need to get the tree to "take" this data at runtime, and display it.
is there any mechanism to dynamically add or change the data structure?
The text was updated successfully, but these errors were encountered: