assign a new data to a tree

Hi, how to replace the whole data of a tree with a new array?

Tagged:

Comments

  • tree.clearAll();
    tree.parse(data);
    

    If you want to reuse data structure, be sure to use webix.copy

    tree.clearAll();
    tree.parse(webix.copy(data));
    
  • Thank you very much Maksim.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion