Check documentation for the
latest version of dhtmlxSuite
setUserData DHTMLX Docs
Samples
Forum
Support
Documentation
/
Suite 5.X
addCheckbox
addContextZone
addNewChild
addNewSeparator
addNewSibling
addRadioButton
attachEvent
clearAll
clearHref
clearItemImage
detachEvent
enableDynamicLoading
enableEffect
forEachItem
getCheckboxState
getCircuit
getContextMenuHideAllMode
getHotKey
getItemImage
getItemPosition
getItemText
getItemType
getParentId
getRadioChecked
getTooltip
getUserData
hide
hideContextMenu
hideItem
isContextZone
isItemEnabled
isItemHidden
loadFromHTML
loadStruct
loadXML
loadXMLString
removeContextZone
removeItem
renderAsContextMenu
serialize
setAlign
setAutoHideMode
setAutoShowMode
setCheckboxState
setContextMenuHideAllMode
setHotKey
setHref
setIconPath
setIconsPath
setIconset
setImagePath
setItemDisabled
setItemEnabled
setItemImage
setItemPosition
setItemText
setOpenMode
setOverflowHeight
setRadioChecked
setSkin
setTooltip
setTopText
setUserData
setVisibleArea
setWebModeTimeout
showContextMenu
showItem
unload
Start
Menu
dhtmlXMenu API
Methods
setUserData
sets user data for an item
void
setUserData
(
string|number
itemId
,
string
name
,
string
value
);
itemId
string|number
the item's id
name
string
the name of user data
value
string
the value of userdata (usually
string
)
Example
myMenu.
setUserData
(
itemId
,
name
,
value
)
;
Related samples
Change items userdata
See also
API
getUserData
Articles
Configuring Menu Items
Back to top