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.

Source code

Source codeSource codeSource code

Load from embedded <UL> markup:

Load from Ajax data:

Load from embedded JSON data:


Fancytree @VERSION, jQuery UI 1.13.2, jQuery 3.6.0