Class DHTMLSuite.menuModel

Object
   |
   +--DHTMLSuite.menuModel

class DHTMLSuite.menuModel


Purpose of class: Organize menu items for different menu widgets. demos of menus: (Demo)
Defined in dhtml-suite-for-applications.js

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


Field Summary
 Object menuItems
          
 Object menuItemsOrder
          
 Object submenuType
          
 
Constructor Summary
DHTMLSuite.menuModel ()
           
 
Method Summary
 Object addItem(id,itemText,itemIcon,url,parentId,helpText,jsFunction,type,submenuWidth)
           Add separator (special type of menu item)
 void addItemsFromMarkup(ulId)
           This method creates all the menuModelItem objects by reading it from existing markup on your page.
 Object addSeparator(parentId)
           Add separator (special type of menu item)
 Object getItems(parentId,returnArray)
           return an array of all menu items or a branch of menu items.
 void init()
           Initilizes the menu model.
 void setMainMenuGroupWidth(newWidth)
           Add separator (special type of menu item)
 void setMenuItemVisibility(id,visible)
           Save visibility of a menu item.
 void setSubMenuType(depth,newType)
           Set menu type for a specific menu depth.
 void setSubMenuWidth(id,newWidth)
           This method specifies the width of a sub menu group.

Field Detail

menuItems

Object menuItems

menuItemsOrder

Object menuItemsOrder

submenuType

Object submenuType

Constructor Detail

DHTMLSuite.menuModel

DHTMLSuite.menuModel()

Method Detail

addItem

Object addItem(id,itemText,itemIcon,url,parentId,helpText,jsFunction,type,submenuWidth)

addItemsFromMarkup

void addItemsFromMarkup(ulId)