getItemPosition(id) returns item's position in the current polygon
Object: dhtmlXMenuObject
File required:dhtmlxmenu.js
id - the item
getItemText(id) returns item's text
Object: dhtmlXMenuObject
File required:dhtmlxmenu.js
id - the item
getItemType(id) return item type by id
Object: dhtmlXMenuObject
File required:dhtmlxmenu.js
id
getParentId(id) returns parent's id
Object: dhtmlXMenuObject
File required:dhtmlxmenu.js
id - the item
getRadioChecked(group) returns a checked radio button in the group
Object: dhtmlXMenuObject
File required:dhtmlxmenu.js
group - radio button group
getTooltip(id) returns tooltip of a menu item
Object: dhtmlXMenuObject
File required:dhtmlxmenu.js
id - menu item's id
getUserData(id, name) returns item's userdata
Object: dhtmlXMenuObject
File required:dhtmlxmenu.js
id - the item
name - the name of userdata (string)
hide() hides any open menu polygons
Object: dhtmlXMenuObject
File required:dhtmlxmenu.js
hideContextMenu() usercall to hide a contextual menu
Object: dhtmlXMenuObject
File required:dhtmlxmenu.js
hideItem(id) hides an item
Object: dhtmlXMenuObject
File required:dhtmlxmenu.js
id - the item to hide
isContextZone(zoneId) returns true if an object is used as a contextual zone for the menu
Object: dhtmlXMenuObject
File required:dhtmlxmenu.js
zoneId - id of the object to check
isItemEnabled(id) returns true if the item is enabled
Object: dhtmlXMenuObject
File required:dhtmlxmenu.js
id - the item to check
isItemHidden(id) returns true if the item is hidden
Object: dhtmlXMenuObject
File required:dhtmlxmenu.js
id - the item to check
loadFromHTML(objId, clearAfterAdd, onLoadFunction) loads menu data from an html and calls onLoadFunction when loading is done
Object: dhtmlXMenuObject
File required:dhtmlxmenu.js
object - html data container
clearAfterAdd - true|false, removes the container object after the data is loaded
onLoadFunction - is called after the data is loaded (but before clearing html content if clear is set to true)
loadXML(xmlFile, onLoadFunction) loads menu data from an xml file and calls onLoadFunction when loading is done
Object: dhtmlXMenuObject
File required:dhtmlxmenu.js
xmlFile - an xml file with webmenu data
onLoadFunction - a function that is called after loading is done
loadXMLString(xmlString, onLoadFunction) loads menu data from an xml string and calls onLoadFunction when loading is done
Object: dhtmlXMenuObject
File required:dhtmlxmenu.js
xmlFile - an xml string with webmenu data
onLoadFunction - function that is called after loading is done
removeContextZone(zoneId) removes an object from contextual zones list
Object: dhtmlXMenuObject
File required:dhtmlxmenu.js
zoneId - id of a contextual zone
removeItem(id) removes an item from the menu with all nested sublevels
Object: dhtmlXMenuObject
File required:dhtmlxmenu.js
id - id of the item for removing
renderAsContextMenu() renders menu as contextual
Object: dhtmlXMenuObject
File required:dhtmlxmenu.js
setAutoHideMode(mode) sets to false to prevent hiding a contextual menu by a click
Object: dhtmlXMenuObject
File required:dhtmlxmenu.js
mode - true/false
setAutoShowMode(mode) sets to false to prevent showing a contextual menu by a click
Object: dhtmlXMenuObject
File required:dhtmlxmenu.js
mode - true/false
setCheckboxState(id, state) sets checkbox's state
Object: dhtmlXMenuObject
File required:dhtmlxmenu.js
id - the item
state - a new state
setHotKey(id, hkey) sets menu hot-key (just text)
Object: dhtmlXMenuObject
File required:dhtmlxmenu.js
id - menu item's id
hkey - hot-key text
setIconsPath(path) defines an url where necessary user embedded icons are located
Object: dhtmlXMenuObject
File required:dhtmlxmenu.js
path - url to images
setImagePath(path) defines an url where necessary images are located
Object: dhtmlXMenuObject
File required:dhtmlxmenu.js
path - url to images
setItemDisabled(id) disables an item
Object: dhtmlXMenuObject
File required:dhtmlxmenu.js
id - item's id to disable
setItemEnabled(id) enables an item
Object: dhtmlXMenuObject
File required:dhtmlxmenu.js
id - item's id to enable
state - true|false
setItemImage(id, img, imgDis) sets an image for the item
Object: dhtmlXMenuObject
File required:dhtmlxmenu.js
id - the item
img - the image for the enabled item (empty string for none)
imgDis - the image for the disabled item (empty string for none)
setItemPosition(id, pos) sets new item's position in the current polygon (moves an item inside the single level)
Object: dhtmlXMenuObject
File required:dhtmlxmenu.js
id - the item
pos - the position (int)
setItemText(id, text) sets text for the item
Object: dhtmlXMenuObject
File required:dhtmlxmenu.js
id - the item
text - a new text
setOpenMode(mode) alias for setIconsPath
Object: dhtmlXMenuObject
File required:dhtmlxmenu.js
setOpenMode(mode) sets open mode for the menu
Object: dhtmlXMenuObject
File required:dhtmlxmenu.js
mode - win|web, the default mode is web, in the win mode a user should click anywhere to hide the menu, in the web mode - just put the mouse pointer out of the menu area
setOverflowHeight(itemsNum) limits the maximum number of visible items in polygons
Object: dhtmlXMenuObject
File required:dhtmlxmenu.js
itemsNum - count of the maximum number of visible items
setRadioChecked(group, id) checks a radio button inside the group
Object: dhtmlXMenuObject
File required:dhtmlxmenu.js
group - radio button group
id - radio button's id
setTooltip(id, tip) sets tooltip for a menu item
Object: dhtmlXMenuObject
File required:dhtmlxmenu.js
id - menu item's id
tip - tooltip
setUserData(id, name, value) sets userdata for an item
Object: dhtmlXMenuObject
File required:dhtmlxmenu.js
id - the item
name - the name of userdata (string)
value - the value of userdata (usually string)
setVisibleArea(x1, x2, y1, y2) sets the area in which the menu can appear, if the area is not set, the menu will occupy all available visible space
Object: dhtmlXMenuObject
File required:dhtmlxmenu.js
x1, x2 - int, leftmost and rightmost coordinates by x axis
y1, y2 - int, topmost and bottommost coordinates by y axis
setWebModeTimeout(tm) sets hide menu timeout (web mode only)
Object: dhtmlXMenuObject
File required:dhtmlxmenu.js
tm - timeout, ms, 400 default
showContextMenu(x, y) usercall to show a contextual menu