Moves the specified item to a new position within the tree hiararchy.
Parameters
Param | Type | Details |
item | Object | The item for which the list is requested |
direction | IntegralUIMoveDirection | Direction at which the item is moved |
targetItem (optional) | Object | An item used as a reference |
position (optional) | Number | The index at which the item is moved |
Return Value
This method does not return a value.
Remarks
Use this method to move a specific item at new position within the tree hiararchy. The following values are acceptable for the direction field:
- After - the item is placed after the target item at the same level
- At - the item is placed at specified position as child of target item or as root
- Before - the item is placed before the target item at the same level
- Down - the item is moved by one position downwards within the tree hiararchy
- First - the item is placed as a first child item of the target item or as a first root item
- Left - the item level is increased by one within the tree hiararchy
- Last - the item is placed as a last child item of the target item or as a last root item
- Right - the item level is decreased by one within the tree hiararchy
- Up - the item is moved by one position upwards within the tree hiararchy
Version Information
Supported in: v1.6.
See Also