Menu"
From Documentation
m (→Example) |
|||
Line 12: | Line 12: | ||
= Example = | = Example = | ||
+ | [[Image:Menu.png]] | ||
− | + | <source lang="xml" > | |
− | + | <menu label="File"> | |
+ | <menupopup> | ||
+ | <menuitem label="New" onClick="alert(self.label)"/> | ||
+ | <menuitem label="Open" onClick="alert(self.label)"/> | ||
+ | <menuitem label="Save" onClick="alert(self.label)"/> | ||
+ | <menuseparator/> | ||
+ | <menuitem label="Exit" onClick="alert(self.label)"/> | ||
+ | </menupopup> | ||
+ | </menu> | ||
+ | </source> | ||
=Supported events= | =Supported events= |
Revision as of 06:18, 11 May 2010
Menu
Employment/Purpose
An element, much like a button, that is placed on a menu bar. When the user clicks the menu element, the child Menupopup of the menu will be displayed. This element is also used to create submenus of Menupopup.
Example
<menu label="File">
<menupopup>
<menuitem label="New" onClick="alert(self.label)"/>
<menuitem label="Open" onClick="alert(self.label)"/>
<menuitem label="Save" onClick="alert(self.label)"/>
<menuseparator/>
<menuitem label="Exit" onClick="alert(self.label)"/>
</menupopup>
</menu>
Supported events
None | None |
Supported Children
*ALL
Use cases
Version | Description | Example Location |
---|---|---|
5.0+ |
Version History
Version | Date | Content |
---|---|---|
5.0.1 | 05/11/2010 | Initialization |