expandcollaps

dhtmlXMenuBarObject object API

addItem(panel,item)
add item to menu
Topic(s): Add/delete;
File required:dhtmlXMenuBar.js
  • item - item object
  • panel - menu panel object
  • disableItem(itemId)
    disable menu button
    Topic(s): Item control;
    Nested from:dhtmlXProtobarObject
    File required:dhtmlXProtobar.js
  • itemId - item id
  • enableIESelectBoxFix(mode)
    fix z-index problem with select boxes in IE, enabled by default
    Topic(s): Initialization;
    File required:dhtmlXMenuBar.js
  • mode - enable/disable
  • enableItem(itemId)
    enable menu button
    Topic(s): Item control;
    Nested from:dhtmlXProtobarObject
    File required:dhtmlXProtobar.js
  • itemId - item id
  • enableWindowOpenMode(mode)
    closed menu behaviour
    Topic(s): Initialization;
    File required:dhtmlXMenuBar.js
  • mode - enable/disable
  • getItem(itemId)
    return item object by id
    Topic(s): Item control;
    Nested from:dhtmlXProtobarObject
    File required:dhtmlXProtobar.js
  • itemId - item id
  • getPanel(panelId)
    return menu panel object
    Topic(s): Item control;
    File required:dhtmlXMenuBar.js
  • panelId - id of panel related menu item
  • hideBar()
    hide menu
    Topic(s): Initialization;
    Nested from:dhtmlXProtobarObject
    File required:dhtmlXProtobar.js
    hideButtons(idList)
    hide menu buttons
    Topic(s): Item control;
    Nested from:dhtmlXProtobarObject
    File required:dhtmlXProtobar.js
  • idList - list of items's ids, separated by comma
  • hideItem(itemId)
    hide menu button
    Topic(s): Item control;
    Nested from:dhtmlXProtobarObject
    File required:dhtmlXProtobar.js
  • itemId - item id
  • loadXML(file)
    load XML from file
    Topic(s): Initialization;
    Nested from:dhtmlXProtobarObject
    File required:dhtmlXProtobar.js
  • file - file name
  • loadXMLString(xmlString)
    load XML from string
    Topic(s): Initialization;
    Nested from:dhtmlXProtobarObject
    File required:dhtmlXProtobar.js
  • xmlString - string contining XML
  • removeItem(id)
    remove item
    Topic(s): Add/delete;
    File required:dhtmlXMenuBar.js
  • id - item id
  • resetBar(idList)
    hide all items, show only items which ids in list
    Topic(s): Item control;
    Nested from:dhtmlXProtobarObject
    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): Initialization;
    Nested from:dhtmlXProtobarObject
    File required:dhtmlXProtobar.js
  • align - buttons alignment
  • setBarSize(width,height)
    set menu size
    Topic(s): Initialization;
    Nested from:dhtmlXProtobarObject
    File required:dhtmlXProtobar.js
  • width - menu width
  • height - menu height
  • setGfxPath(path)
    set path to system images
    Topic(s): Action handling;
    Nested from:dhtmlXProtobarObject
    File required:dhtmlXProtobar.js
  • path - relative path to images
  • setItemAction(id,action)
    set item individual action
    Topic(s): Action handling;
    Nested from:dhtmlXProtobarObject
    File required:dhtmlXProtobar.js
  • id - item identificator
  • action - js function called on item selection
  • setMenuCSS(table,title,secTable)
    set menu css classes
    Topic(s): Item control;
    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): Initialization;
    File required:dhtmlXMenuBar.js
  • modeValue - name of design
  • setOnClickHandler(func)
    set default action
    Topic(s): Action handling;
    Nested from:dhtmlXProtobarObject
    File required:dhtmlXProtobar.js
  • action - set default action
  • setOnHideHandler(func)
    set action hadler on menu hiding
    Topic(s): Action handling;
    Nested from:dhtmlXProtobarObject
    File required:dhtmlXProtobar.js
  • func - user defined function
  • setOnShowHandler(func)
    set action hadler on menu showing
    Topic(s): Action handling;
    Nested from:dhtmlXProtobarObject
    File required:dhtmlXProtobar.js
  • func - user defined function
  • setTitleText(newText)
    set menu tittle
    Topic(s): Initialization;
    Nested from:dhtmlXProtobarObject
    File required:dhtmlXProtobar.js
  • name - new tittle, shown on menu
  • showBar()
    show menu
    Topic(s): Initialization;
    Nested from:dhtmlXProtobarObject
    File required:dhtmlXProtobar.js
    showButtons(idList)
    show menu buttons
    Topic(s): Item control;
    Nested from:dhtmlXProtobarObject
    File required:dhtmlXProtobar.js
  • idList - list of items's ids, separated by comma
  • showItem(id)
    show menu button
    Topic(s): Item control;
    Nested from:dhtmlXProtobarObject
    File required:dhtmlXProtobar.js
  • id - item id
  • dhtmlXMenuItemObject object API

    setText(newText)
    set button text
    Topic(s): Item control;
    File required:dhtmlXMenuBar.js
  • newText - new text [ HTML allowed ]
  • dhtmlXMenuDividerYObject object API

    disable()
    disable object
    Topic(s): Item control;
    Nested from:dhtmlXButtonPrototypeObject
    File required:dhtmlXProtobar.js
    enable()
    enable object
    Topic(s): Item control;
    Nested from:dhtmlXButtonPrototypeObject
    File required:dhtmlXProtobar.js
    setAction(func)
    set default action, action function take one parametr - item id
    Topic(s): Action handling;
    Nested from:dhtmlXButtonPrototypeObject
    File required:dhtmlXProtobar.js
  • func - js function
  • setAltText(imageText)
    set alt text of button image
    Topic(s): Item control;
    Nested from:dhtmlXButtonPrototypeObject
    File required:dhtmlXProtobar.js
  • imageText - new alt image text
  • setHTML(htmlText)
    set innerHTML of button
    Topic(s): Item control;
    Nested from:dhtmlXButtonPrototypeObject
    File required:dhtmlXProtobar.js
  • htmlText - new text
  • setImage(imageSrc,disabledImageSrc)
    set image href
    Topic(s): Item control;
    Nested from:dhtmlXButtonPrototypeObject
    File required:dhtmlXProtobar.js
  • imageSrc - new image href
  • disabledImageSrc - new image href
  • setSecondAction(func)
    set personal onClick action (action must return false for preventing calling default action after personal), action function take one parametr - item id
    Topic(s): Action handling;
    Nested from:dhtmlXButtonPrototypeObject
    File required:dhtmlXProtobar.js
  • func - js function
  • dhtmlXMenuDividerXObject object API

    disable()
    disable object
    Topic(s): Item control;
    Nested from:dhtmlXButtonPrototypeObject
    File required:dhtmlXProtobar.js
    enable()
    enable object
    Topic(s): Item control;
    Nested from:dhtmlXButtonPrototypeObject
    File required:dhtmlXProtobar.js
    setAction(func)
    set default action, action function take one parametr - item id
    Topic(s): Action handling;
    Nested from:dhtmlXButtonPrototypeObject
    File required:dhtmlXProtobar.js
  • func - js function
  • setAltText(imageText)
    set alt text of button image
    Topic(s): Item control;
    Nested from:dhtmlXButtonPrototypeObject
    File required:dhtmlXProtobar.js
  • imageText - new alt image text
  • setHTML(htmlText)
    set innerHTML of button
    Topic(s): Item control;
    Nested from:dhtmlXButtonPrototypeObject
    File required:dhtmlXProtobar.js
  • htmlText - new text
  • setImage(imageSrc,disabledImageSrc)
    set image href
    Topic(s): Item control;
    Nested from:dhtmlXButtonPrototypeObject
    File required:dhtmlXProtobar.js
  • imageSrc - new image href
  • disabledImageSrc - new image href
  • setSecondAction(func)
    set personal onClick action (action must return false for preventing calling default action after personal), action function take one parametr - item id
    Topic(s): Action handling;
    Nested from:dhtmlXButtonPrototypeObject
    File required:dhtmlXProtobar.js
  • func - js function
  • dhtmlXContextMenuObject object API

    setContextMenuHandler(func)
    set onClick context menu handler
    Topic(s): Initialization;
    File required:dhtmlXMenuBar_cp.js
  • func - user defined function
  • setContextZone(htmlObject,zoneId)
    set context zones
    Topic(s): Initialization;
    File required:dhtmlXMenuBar_cp.js
  • htmlObject - id of html tag or html object
  • zoneId - id of zone