Hi all,
We're using jstree for a navigation menu editor, and have been assigning metadata to the nodes of the tree like this:
var data = currentNode.data("jstree");
data.title = textBoxTitle.val();
data.linkType = textBoxLink.val();
I can see that the data
object contains the relevant properties, but not too sure where jquery keeps the associated data after this point.
When we come to save the data (serializing it to our server-side language), the metadata seems to be ignored...
var json = jQuery.jstree._reference(tree).get_json();
var jsonString = JSON.stringify(json);
The json
object is inspected to have no property describing the metadata.
How do we serialize the object along with its metadata?
Thanks in advance,
- Greg.