LIDOR SYSTEMS

Advanced User Interface Controls and Components

IntegralUI Web

Documentation and API Reference


moveItem(item, direction, targetItem, position)

Moves the specified item to a new position within the tree hiararchy.

Parameters

ParamTypeDetails
itemObjectThe item for which the list is requested
directionIntegralUIMoveDirectionDirection at which the item is moved
targetItem (optional)ObjectAn item used as a reference
position (optional)NumberThe 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