DHTMLX Docs & Samples Explorer

setItemPosition(itemId, pos)

Required library edition: This method works with any edition of DHTMLX library
Required library file: dhtmlxmenu.js

sets new item's position in the current polygon (moves an item inside the single level)

  • itemId - the item
  • pos - the position (int)

<code javascript>

  menu.setItemPosition(pos);

</cope>