Occurs before an item is removed from the tree collection.
|e||Object||An event object which contains the item|
This event can be handled by creating a function in your application controller $scope and applying this function as value to an attribute in TreeView directive:
- item-removing attribute, or
- events attribute
The events attribute has a higher priority than the item-removing attribute. If both attributes are set, the value from events attribute is used.
For cancellation, simply return a false value in this event handler.
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.