jsTree » Demos

# Creating nodes demo

You may also want to read the documentation on create, type creatable setting and the createat config option. When passing data (attributes, title) when creating a node - please follow the JSON datastore format. When creating the beforecreate and oncreate callbacks are triggered.

- Root node 1
  - Child node 1
  - Child node 2
  - Some other child node with longer text
- Root node 2