Example: Initialization Methods

Use different methods to initialize the tree (Ajax, embedded <ul>, embedded JSON).
Also distinct nodes contain custom data using `data="..."` attributes.
See the LoadData Tutorial for details.

Load from embedded <UL> markup:

Load from Ajax data:

Load from embedded JSON data:

{"foo": "bazbaz", "children": [ {"title": "node 1"}, {"title": "node 2", "folder": true } ]}