Dynatree TODict ()
-
24-10-2019 - |
Pregunta
En elhttp://wwwendt.de/tech/dynatree/index.html
dice
toDict()
Convert the tree into a JavaScript object.
See node.toDict() for details.
¿Hay alguna forma de inicializar el árbol de ese objeto más tarde? Gracias.
Solución
El dict resultante se puede pasar a node.addChild()
.
Eche un vistazo al ejemplo de copiar/pegar, que básicamente hace esto:
var cb = sourceNode.toDict(..);
targetNode.addChild(cb);
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow