Class DHTMLSuite.menuBar

Object
   |
   +--DHTMLSuite.menuBar

class DHTMLSuite.menuBar


Purpose of class: Creates a top bar menu strip. Demos:

Image describing the classes


Defined in dhtml-suite-for-applications.js

Author: Alf Magne Kalleland(www.dhtmlgoodies.com)
Version: 1.0


Field Summary
 Object activeSubItemsOnMouseOver
          
 Object createIframesForOldIeBrowsers
          
 Object cssPrefix
          
 Object layoutCSS
          
 Object menuBarBackgroundImage
          
 Object menuBarHeight
          
 Object menuBarObj
          
 Object menuBarState
          
 Object menuItem_objects
          
 Object menuItemCssPrefix
          
 Object menuItemLayoutCss
          
 Object objectIndex
          
 Object submenuGroups
          
 Object submenuIframes
          
 Object targetId
          
 
Constructor Summary
DHTMLSuite.menuBar ()
           
 
Method Summary
 void addMenuItems(menuItemObj)
           Add menu items
 void appendMenuItems(idOfParentMenuItem,newMenuModel)
           This method appends menu items to the menu dynamically
 void deleteMenuItems(idOfParentMenuItem,deleteParentElement)
           This method deletes menu items from the menu dynamically
 void hideMenuItem(menuItemId)
           This method doesn't delete menu items.
 void hideSubMenus(e)
           Deactivate all sub menus ( collapse and set state back to regular ) In case you have a menu inside a scrollable container, call this method in an onscroll event for that element example document.getElementById('textContent').onscroll = menuBar.__hideSubMenus;
 void init()
           Initilizes the script - This method should be called after your set methods.
 void setActiveSubItemsOnMouseOver(activateSubOnMouseOver)
           Specify if sub menus should be activated on mouse over(i.e.
 void setCreateIframesForOldIeBrowsers(createIframesForOldIeBrowsers)
           This method specifies if you want to the script to create iframes behind sub menu groups in order to cover eventual select boxes.
 void setCssPrefix(newCssPrefix)
           Specify prefix of css classes used for the menu bar.
 void setIcon(menuItemId,newPath)
           Replace menu icon for a menu item.
 void setLayoutCss(nameOfNewCssFile)
           Specify the css file for this menu bar
 void setMenuItemCssPrefix(newCssPrefix)
           Specify prefix of css classes used for the menu items.
 void setMenuItemLayoutCss(nameOfNewCssFile)
           Specify the css file for the menu items
 void setMenuItemState(menuItemId,state)
           This method changes the state of the menu bar(expanded or collapsed).
 void setTarget(idOfHTMLElement)
           Specify where this menu bar will be inserted.
 void setText(menuItemId,newText)
           Replace the text for a menu item
 void showMenuItem(menuItemId)
           This method shows a menu item.

Field Detail

activeSubItemsOnMouseOver

Object activeSubItemsOnMouseOver

createIframesForOldIeBrowsers

Object createIframesForOldIeBrowsers

cssPrefix

Object cssPrefix

layoutCSS

Object layoutCSS

menuBarBackgroundImage

Object menuBarBackgroundImage

menuBarHeight

Object menuBarHeight

menuBarObj

Object menuBarObj

menuBarState

Object menuBarState

menuItem_objects

Object menuItem_objects

menuItemCssPrefix

Object menuItemCssPrefix

menuItemLayoutCss

Object menuItemLayoutCss

objectIndex

Object objectIndex

submenuGroups

Object submenuGroups

submenuIframes

Object submenuIframes

targetId

Object targetId

Constructor Detail

DHTMLSuite.menuBar

DHTMLSuite.menuBar()

Method Detail

addMenuItems

void addMenuItems(menuItemObj)

appendMenuItems

void appendMenuItems(idOfParentMenuItem,newMenuModel)

deleteMenuItems

void deleteMenuItems(idOfParentMenuItem,deleteParentElement)

hideMenuItem

void hideMenuItem(menuItemId)

hideSubMenus

void hideSubMenus(e)

init

void init()

setActiveSubItemsOnMouseOver

void setActiveSubItemsOnMouseOver(activateSubOnMouseOver)

setCreateIframesForOldIeBrowsers

void setCreateIframesForOldIeBrowsers(createIframesForOldIeBrowsers)

setCssPrefix

void setCssPrefix(newCssPrefix)

setIcon

void setIcon(menuItemId,newPath)

setLayoutCss

void setLayoutCss(nameOfNewCssFile)

setMenuItemCssPrefix

void setMenuItemCssPrefix(newCssPrefix)

setMenuItemLayoutCss

void setMenuItemLayoutCss(nameOfNewCssFile)

setMenuItemState

void setMenuItemState(menuItemId,state)

setTarget

void setTarget(idOfHTMLElement)

setText

void setText(menuItemId,newText)

showMenuItem

void showMenuItem(menuItemId)


Documentation generated by JSDoc on Mon Oct 8 10:17:27 2007