Pergunta

In the http://wwwendt.de/tech/dynatree/index.html

it says

toDict()
    Convert the tree into a JavaScript object.
    See node.toDict() for details. 

Is there a way to initialize the tree from that object later? Thanks.

Foi útil?

Solução

The resulting dict can be passed to node.addChild().

Have a look at the copy/paste example, which basically does this:

var cb = sourceNode.toDict(..);
targetNode.addChild(cb);
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top