DHTMLX Docs & Samples Explorer

setUserData(itemId, name, value)

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

sets userdata for an item

  • itemId - the item's id
  • name - the name of userdata (string)
  • value - the value of userdata (usually string)
    menu.setUserData(itemId, name, value);