Check documentation for the latest version of dhtmlxSuite setUserData DHTMLX Docs

setUserData

sets user data for an item

void setUserData(string|number itemId,string name,string value);
itemIdstring|numberthe item's id
namestringthe name of user data
valuestringthe value of userdata (usually string)

Example

myMenu.setUserData(itemId, name, value);

Related samples

See also
Back to top