Menu"

From Documentation
Line 16: Line 16:
  
 
<source lang="xml" >
 
<source lang="xml" >
 +
<menubar>
 
  <menu label="File">
 
  <menu label="File">
 
     <menupopup>
 
     <menupopup>
Line 25: Line 26:
 
     </menupopup>
 
     </menupopup>
 
  </menu>
 
  </menu>
 +
</menubar>
 
</source>
 
</source>
  

Revision as of 06:17, 11 October 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

File:Menu.png


<menubar>
 <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>
</menubar>

Supported events

Name
Event Type
None None

Supported Children

*ALL

Use cases

Version Description Example Location
     

Version History

Version Date Content
     



Last Update : 2010/10/11

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.