creates a new node as a child to the specified one with parentId
| parentId | string|number | parent node's id |
| id | string|number | new node's id |
| text | string | new node's label |
| actionHandler | function | function fired on clicking an item, optional |
| image1 | string | image for a node without children, optional |
| image2 | string | image for a closed node, optional |
| image3 | string | image for an opened node, optional |
| optionStr | string | options' string, optional |
| children | mixed | node children flag (for dynamic trees), optional |
myTree.insertNewItem("my_parent_11","11_1","item 11");
Back to top