DHTMLX Docs & Samples Explorer

getItemPosition(itemId)

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

returns item's position in the current polygon

  • itemId - the item's id
    var pos = menu.getItemPosition(itemId); // returns number