expandcollaps

dhtmlXMenuBarObject object API

addItem(panel,item)
add item to menu
Topic(s):
File required:dhtmlxmenubar.js
  • item - item object
  • panel - menu panel object
  • clearAll(id)
    remove item
    Topic(s):
    File required:dhtmlxmenubar.js
  • id - item id
  • disableSmartPositioning(mode)
    fix z-index problem with select boxes in IE, enabled by default
    Topic(s):
    File required:dhtmlxmenubar.js
  • mode - disable/enable smart positioning of sub menus
  • enableChildIcon(mode)
    disable child menu image
    Topic(s):
    File required:dhtmlxmenubar.js
  • mode - enable/disable
  • enableChildIconSwitching(mode)
    disable child menu image switching
    Topic(s):
    File required:dhtmlxmenubar.js
  • mode - enable/disable
  • enableDirectOnClick(mode)
    disable child menu image
    Topic(s):
    File required:dhtmlxmenubar.js
  • mode - enable/disable
  • enableIESelectBoxFix(mode)
    fix z-index problem with select boxes in IE, enabled by default
    Topic(s):
    File required:dhtmlxmenubar.js
  • mode - enable/disable
  • enableMenuHandle(mode)
    fix z-index problem with select boxes in IE, enabled by default
    Topic(s):
    File required:dhtmlxmenubar.js
  • mode - enable/disable
  • enableTooltip(mode)
    enable/disable tooltips
    Topic(s):
    File required:dhtmlxmenubar.js
  • mode - enable/disable
  • enableWindowOpenMode(mode)
    closed menu behaviour
    Topic(s):
    File required:dhtmlxmenubar.js
  • mode - enable/disable
  • getItem(itemId)
    return item object by id
    Topic(s):
    File required:dhtmlxmenubar.js
  • itemId - item id
  • getPanel(panelId)
    return menu panel object
    Topic(s):
    File required:dhtmlxmenubar.js
  • panelId - id of panel related menu item
  • removeItem(id)
    remove item
    Topic(s):
    File required:dhtmlxmenubar.js
  • id - item id
  • setHrefMode(mode)
    disable child menu image
    Topic(s):
    File required:dhtmlxmenubar.js
  • mode - enable/disable
  • setIconSize(size)
    set zIndex value for menu object
    Topic(s):
    File required:dhtmlxmenubar.js
  • size - (integer) new icon size
  • setMenuCSS(table,title,secTable)
    set menu css classes
    Topic(s):
    File required:dhtmlxmenubar.js
  • table - css class for menu container
  • secTable - css class for child menu containers
  • title - css class for toolbar title
  • setMenuMode(modeValue)
    set menu design
    Topic(s):
    File required:dhtmlxmenubar.js
  • modeValue - name of design
  • setZIndex(zIndex)
    set zIndex value for menu object
    Topic(s):
    File required:dhtmlxmenubar.js
  • zIndex - (integer) new zIndex value
  • dhtmlXMenuItemObject object API

    enable()
    enable object
    Topic(s):
    File required:dhtmlxmenubar.js
    setText(newText)
    set button text
    Topic(s):
    File required:dhtmlxmenubar.js
  • newText - new text [ HTML allowed ]
  • dhtmlXContextMenuObject object API

    _contextEnd(e)
    correct context menu position
    Topic(s):
    File required:dhtmlxmenubar_cp.js
    disableMenu(mode)
    disable/enable context menu
    Topic(s):
    File required:dhtmlxmenubar_cp.js
  • mode - true/false as disable/enable
  • openAt(x,y,id,smartPosition)
    open menu at specified position
    Topic(s):
    File required:dhtmlxmenubar_cp.js
  • x - x position
  • y - y position
  • id - context id
  • smartPosition - enable/disable correction of position
  • setContextMenuHandler(func)
    set onClick context menu handler
    Topic(s):
    File required:dhtmlxmenubar_cp.js
  • func - user defined function
  • setContextMenuPosition(left,top)
    set zIndex value for menu object
    Topic(s):
    File required:dhtmlxmenubar_cp.js
  • left - (integer) left position shift
  • top - (integer) top position shift
  • setContextZone(htmlObject,zoneId)
    set context zones
    Topic(s):
    File required:dhtmlxmenubar_cp.js
  • htmlObject - id of html tag or html object
  • zoneId - id of zone
  • setOnShowMenuHandler(func)
    set onShow context menu handler
    Topic(s):
    File required:dhtmlxmenubar_cp.js
  • func - user defined function
  • dhtmlXProtobarObject object API

    disableItem(itemId)
    disable menu button
    Topic(s):
    File required:dhtmlxprotobar.js
  • itemId - item id
  • enableItem(itemId)
    enable menu button
    Topic(s):
    File required:dhtmlxprotobar.js
  • itemId - item id
  • getItem(itemId)
    return item object by id
    Topic(s):
    File required:dhtmlxprotobar.js
  • itemId - item id
  • hideBar()
    hide menu
    Topic(s):
    File required:dhtmlxprotobar.js
    hideButtons(idList)
    hide menu buttons
    Topic(s):
    File required:dhtmlxprotobar.js
  • idList - list of items's ids, separated by comma
  • hideItem(itemId)
    hide menu button
    Topic(s):
    File required:dhtmlxprotobar.js
  • itemId - item id
  • loadXML(file,afterCall)
    load XML from file
    Topic(s):
    File required:dhtmlxprotobar.js
  • file - file name
  • afterCall - function which will be called after xml loading
  • loadXMLFor(file,itemId,afterCall)
    load XML from file
    Topic(s):
    File required:dhtmlxprotobar.js
  • file - file name
  • itemId - if of item for which xml requested
  • afterCall - function which will be called after loading
  • loadXMLString(xmlString,afterCall)
    load XML from string
    Topic(s):
    File required:dhtmlxprotobar.js
  • xmlString - string contining XML
  • afterCall - function which will be called after xml loading
  • resetBar(idList)
    hide all items, show only items which ids in list
    Topic(s):
    File required:dhtmlxprotobar.js
  • idList - list of id's, separated by comma
  • setBarAlign(align)
    set menu buttons alignment (allowed - 'left','center','right','top','middle','bottom')
    Topic(s):
    File required:dhtmlxprotobar.js
  • align - buttons alignment
  • setBarSize(width,height)
    set menu size
    Topic(s):
    File required:dhtmlxprotobar.js
  • width - menu width
  • height - menu height
  • setGfxPath(path)
    set path to system images
    Topic(s):
    File required:dhtmlxprotobar.js
  • path - relative path to images
  • setItemAction(id,action)
    set item individual action
    Topic(s):
    File required:dhtmlxprotobar.js
  • id - item identificator
  • action - js function called on item selection
  • setOnClickHandler(func)
    set default action
    Topic(s):
    File required:dhtmlxprotobar.js
  • action - set default action
  • setOnHideHandler(func)
    set action hadler on menu hiding
    Topic(s):
    File required:dhtmlxprotobar.js
  • func - user defined function
  • setOnShowHandler(func)
    set action hadler on menu showing
    Topic(s):
    File required:dhtmlxprotobar.js
  • func - user defined function
  • setTitleText(newText)
    set menu tittle
    Topic(s):
    File required:dhtmlxprotobar.js
  • name - new tittle, shown on menu
  • showBar()
    show menu
    Topic(s):
    File required:dhtmlxprotobar.js
    showButtons(idList)
    show menu buttons
    Topic(s):
    File required:dhtmlxprotobar.js
  • idList - list of items's ids, separated by comma
  • showItem(id)
    show menu button
    Topic(s):
    File required:dhtmlxprotobar.js
  • id - item id