Advanced User Interface Controls and Components
Occurs before item's checkbox value is changed.
|e||Object||An event object which contains the item and checkbox value|
Event Object Fields
|item||Object||The item which checkbox value is about to change|
|value||Boolean||The value of item's checkbox|
This event can be handled by creating a function in your application controller and applying it as value to an attribute in TreeView directive:
The events attribute has a higher priority than the item-checked-changing 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: v2.0.
An example of AngularJS TreeView showing items with checkbox. Check boxes are fully customizable and can have tri-state values.
A sample which demonstrates how to handle different events in TreeView directive.