|
Sydney | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object
|
+--Widget
|
+--MenuItem
Raises:
click| Fields inherited from class Widget |
html, id, parent, layoutData, eventTable
|
| Constructor Summary | |
MenuItem
(<string> label, <string> iconName, <Function> onClick)
Perhaps MenuItems should inherit from Item
|
|
| Method Summary | |
function
|
getIcon()
|
function
|
getLabel()
|
function
|
getName()
|
function
|
setIcon(fileName)
|
function
|
setLabel(label)
|
| Constructor Detail |
function MenuItem(<string> label, <string> iconName, <Function> onClick)
MenuItems should inherit from Item
label - the text to display for this menu item
iconName - (Optional) - the URL of the icon to display for this menu item. Defaults to a blank image.
onClick - (Optional) - a function to register as a listener for this menu item's click event. If not provided, no listener will be registered.
| Method Detail |
function getIcon()
function getLabel()
function getName()
function setIcon(fileName)
function setLabel(label)
|
Sydney | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||