Hi,
i work with copy and paste on a tree (since u haven't fixed my other problem so far
) and i got a little problem with the format of the datainput
i copy a node (with children OR without) by
clipboard = t.tree('getData', node.target);
therefore i get a single json object. But when i want to append the copied node by
t.tree('append', {
parent: (node ? node.target : null),
data: clipboard
});
the tree requests an array object. I know i could work around by using [clipboard] but there is where it stands in conflict with another possibility i want to offer: pasting only children.
To accomplish that i change the clipboard
clipboard = clipboard.children;
Now i dont know if i got an array or a single item. Of course i could work around that but maybe u could modify the datainput to accept single json data as well as arrays of json data.
If you could tell me early if you plan on changing that would be great because i want to finish the program soon
and otherwise i have to implement the workaround myself