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

Dynamically add new node after lazyLoad has been triggered #61

Open
maxstralin opened this issue Dec 4, 2017 · 1 comment
Open

Dynamically add new node after lazyLoad has been triggered #61

maxstralin opened this issue Dec 4, 2017 · 1 comment

Comments

@maxstralin
Copy link

Hi.

I have a function that allows for uploading in the tree, meaning that I need to add a new node when the file has been uploaded. I expected "addNode" to do this but after receiving the error "Uncaught TypeError: Cannot read property 'visible' of undefined", I get the feeling that the addNode functionality must take a node that has been passed through the renderer, i.e. an actual node and not just a plain node object passed in at initialisation of the tree.

So is there a way that I can add a node, as in a plain node object, or is there a way I can call the renderer that is passed through in the lazyLoad function?

@skateman
Copy link
Member

skateman commented Dec 4, 2017

@maxstralin can you provide a failing example where you reproduce 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