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

setUserData

sets user data for an item

void setUserData(string|number itemId,string name,string value);

Parameters

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