Menuitem"

From Documentation
Line 9: Line 9:
 
= Employment/Purpose =
 
= Employment/Purpose =
  
Space is a Separator with the orient default to "horizontal".
+
A single choice in a <tt>Menupopup</tt> element. It acts much like a button but it is rendered on a menu.  
 
+
Default  <tt>getZclass(): z-menu-item </tt>. (since 3.5.0)
In other words, <space> is equivalent to <separator orient="horizontal">
 
  
 +
[[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>
  
 
= Example =
 
= Example =

Revision as of 06:50, 11 May 2010

Menuitem

Employment/Purpose

A single choice in a Menupopup element. It acts much like a button but it is rendered on a menu. Default getZclass(): z-menu-item . (since 3.5.0)

File:Menu.png

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

Example

Supported events

Name
Event Type
None None

Supported Children

*ALL

Use cases

Version Description Example Location
5.0+    

Version History

Version Date Content
5.x.x x/x/20xx Initialization


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