Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,10 @@ know the name of the 'children' attribute).
]
};

var tree = Arborel.parse(wikipediaJsCategory, 'subcategories');
var tree = Arboreal.parse(wikipediaJsCategory, 'subcategories');

Also several children (or even the whole tree) can be added, after parse, at the same time (syntax is similar as parse)

Also several children (or even the whole tree) can be added at the same time (syntax is similar as parse)

var tree = new Arboreal();
tree.children[1].appendChildren({category:'C#', subitems:[{category:'WPF'}]}, "subitems" );

### Traversal
Expand Down