Check documentation for the latest version 6.0 of dhtmlxSuite setItemPosition DHTMLX Docs

setItemPosition

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

void setItemPosition(string|number itemId,number pos);

Parameters

itemIdstring|numberthe item's id
posnumbera new item's position

Example

myMenu.setItemPosition(id, pos);

Back to top