DojoMenuItem

The DojoMenuItem widget describes the items that are associated with a menu. Code a DojoMenuItem widget for each menu item.

Properties

disabled
Indicates whether the menu item is disabled. If a menu item is disabled, it is gray. Valid values are true and false.
iconClass
Specifies the CSS style class for the icon that is associated with the menu item
text
The text of the item within the menu list

Example

The following example shows the code and output for a menu item that contains three items.


DojoMenu {text = "Edit", children =
	[DojoMenuItem {text="Cut",onClick ::= handleCut,iconClass="dijitEditorIcon dijitEditorIconCut"},
		    DojoMenuItem {text="Copy",onClick ::=handleCopy,iconClass="dijitEditorIcon dijitEditorIconCopy"},
		    DojoMenuItem {text="Paste",disabled=true,iconClass="dijitEditorIcon dijitEditorIconPaste"},
		    DojoMenuItem {text="Paste Special",children =[
		        DojoMenu {children =[createMenuItem("As HTML"),createMenuItem("As plain text")]}
		        ]}


Feedback