Hello
Trying since hours to add a node to a tree. the API documentation 19.2 (I'm not allowed to link it here) is talking about "NodeContent$" as "JQuery Object". I assume this must contain any unqiue ID so the tree Widget knows where it is located. I tried this so far:
// Create default node
var treeData = {
id: "0001",
label: "Root"
};
var mynode = $.apex.treeView.makeDefaultNodeAdapter( treeData );
var tree$ = $( "#HIERARCHYTREE_tree" );
tree$.treeView( "addNode", {"id": "HIERARCHY_tree_1" }, 0, mynode ); // --> widget.treeView.min.js?v=19.2.0.00.18:1 Uncaught Error: Parent node required
tree$.treeView( "addNode", "div.a-TreeView-content.is-selected" , 0, mynode ); // --> widget.treeView.min.js?v=19.2.0.00.18:1 Uncaught TypeError: a.parent is not a function
Based on the API documentation 19.2 it is allowed to send an empty node {} as first parameter but this runs into an "missing parent"
I have no other idea what could/would be expected for NodeContent$. Anyone has a sample for that?