patternfly-bootstrap-treeview icon indicating copy to clipboard operation
patternfly-bootstrap-treeview copied to clipboard

Dynamically add new node after lazyLoad has been triggered

Open maxstralin opened this issue 7 years ago • 1 comments

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?

maxstralin avatar Dec 04 '17 09:12 maxstralin

@maxstralin can you provide a failing example where you reproduce the issue?

skateman avatar Dec 04 '17 14:12 skateman