Class DHTMLSuite.menuItem
Object
|
+--DHTMLSuite.menuItem
- class
DHTMLSuite.menuItem
Purpose of class: Creates the div(s) for a menu item. This class is used by the menuBar class. You can
also create a menu item and add it where you want on your page. the createItem() method will return the div
for the item. You can use the appendChild() method to add it to your page.
Defined in dhtml-suite-for-applications.js
Author: Alf Magne Kalleland(www.dhtmlgoodies.com)
Version: 1.0
Method Summary |
Object
|
createItem(menuModelItemObj)
|
Object
|
getState()
Return state of a menu item.
|
void
|
hide()
Hide the menu item.
|
void
|
setCssPrefix(cssPrefix)
Set css prefix for the menu item.
|
void
|
setIcon(newPath)
Replace menu icon.
|
void
|
setLayoutCss(newLayoutCss)
Creates the different parts of a menu item of type "top".
|
void
|
setState(newState)
Set state of a menu item.
|
void
|
setText(newText)
Replace the text of a menu item
|
void
|
show()
Show the menu item.
|
cssPrefix
Object cssPrefix
layoutCSS
Object layoutCSS
objectIndex
Object objectIndex
DHTMLSuite.menuItem
DHTMLSuite.menuItem()
Author: Alf Magne Kalleland(www.dhtmlgoodies.com)
Version: 1.0
createItem
Object createItem(menuModelItemObj)
getState
Object getState()
Return state of a menu item.
hide
void hide()
setCssPrefix
void setCssPrefix(cssPrefix)
Set css prefix for the menu item. default is 'DHTMLSuite_'. This is useful in case you want to have different menus on a page with different layout.
Parameters:
String
- cssPrefix = New css prefix.
setIcon
void setIcon(newPath)
Parameters:
String
- newPath - Path to new icon (false if no icon);
setLayoutCss
void setLayoutCss(newLayoutCss)
Creates the different parts of a menu item of type "top".
Parameters:
String
- newLayoutCss = Name of css file used for the menu items.
setState
void setState(newState)
Set state of a menu item.
Parameters:
String
- newState = New state for the menu item
setText
void setText(newText)
Replace the text of a menu item
Parameters:
String
- newText - New text for the menu item.
show
void show()
Documentation generated by
JSDoc on Mon Oct 8 10:17:27 2007