Check documentation for the latest version of dhtmlxSuite moveItem DHTMLX Docs


moves an item (inside of tree)

void moveItem(string|number id,string mode,string|number targetId, [object targetTree] );
idstring|numberthe item's id
modestringthe moving mode (see the details)
targetIdstring|numberthe target node in the 'item_child' or 'item_sibling' mode
targetTreeobjecta dhtmlXTreeObject instance, used for moving between trees, optional

moving mode values:

  • 'left'
  • 'up'
  • 'down'
  • 'item_child'
  • 'item_sibling'
  • 'item_sibling_next'
  • 'up_strict'
  • 'down_strict'
Back to top