Advanced User Interface Controls and Components
Moves an item or set of items at specified position in TreeView directive.
Param | Type | Details |
---|---|---|
name | String | The value of name attribute of the TreeView directive |
item | Object or Array | The item or array of items to be moved |
targetItem (optional) | Object | A reference item after or before moved items will be positioned |
direction | String | Direction at which item(s) will be moved |
position (optional) | Integer | The indexed location within the collection to move the item(s) |
This method does not return a value.
This method is part of IntegralUITreeViewService.
The following values are accepted by the direction argument:
Supported in: v2.3
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.