Menubar

A container that usually contains menu elements.

<menubar id="menubar">
        <menu label="File">        
            <menupopup onOpen="alert(self.id)">            
                <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>        
        <menu label="Help">        
            <menupopup>            
                <menuitem label="Index" onClick="alert(self.label)"/>                
                <menu label="About">                
                    <menupopup>                    
                        <menuitem label="About ZK" onClick="alert(self.label)"/>                        
                        <menuitem label="About Potix" onClick="alert(self.label)"/>                        
                    </menupopup>                    
                </menu>                
            </menupopup>            
        </menu>        
    </menubar>    

Class Name

org.zkoss.zul.Menubar

Supported Child Components

*NONE

Supported Events

*NONE

Properties

Property

Description

Data Type

Default Values

orient

The orient

Values: horizontal | vertical

String

vertical

autodrop

Returns whether to automatically drop down menus if user moves mouse over it.

Values: true | false

Boolean

false

Methods

Name

Description

Data Type

onDrawNewChild(org.zkoss.zk.ui.Component child, java.lang.StringBuffer out)

void

getOuterAttrs()

String

insertBefore()

Boolean

Inherited From