Check documentation for the latest version of dhtmlxSuite setUserData DHTMLX Docs

setUserData

sets userdata for an item

void setUserData(string|number itemId,string name,mixed value);
itemIdstring|numberthe id of an item
namestringthe name of userdata
valuemixedthe value of userdata

Example

myToolbar.setUserData(itemId, name, value);

Back to top