Advanced User Interface Controls and Components
Occurs when drag-drop operation completes and item is dropped in TreeView space.
Param | Type | Details |
---|---|---|
e | Object | An event object which contains data about drag-drop operation |
The following objects are carried with this event:
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:
The events attribute has a higher priority than the drag-drop 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.
A demonstration on drag drop of items from TreeView to Tree Grid and vice versa, in AngularJS. Also shows how to dynamically change the icon of items depending on whether there are children or not.
Learn how to handle different events during drag drop operation in TreeView for AngularJS. HTML5 drag and drop example with TreeView directive.
A sample which demonstrates how to handle different events in TreeView directive.