Adds a new item to the tree collection in TreeView directive.
|name||String||The value of name attribute of the TreeView directive|
|item||Object||The item to add to the tree collection|
|parent (optional)||Object||The item which will represent the parent of the newly added item|
This method does not return a value.
This method is part of IntegralUITreeViewService.
Supported in: v1.0.
Articles & Samples
- How to Add/Remove Items in TreeView for AngularJS
Learn how to add or remove items in TreeView for AngularJS using several different methods. Each operation is followed by events which can be handled in your code.
- Dynamically Add Items
A demonstration on how to add new items dynamically in the IntegralUI TreeView for Web, AngularjJS Directive.
A sample which demonstrates how you can create and/or modify a tree hierarchy using several different methods.