Description
Menuitem component is used as a child of menu
API
component-family |
net.sf.yui4jsf.Menu |
renderer-type |
NONE
|
component-class |
net.sf.yui4jsf.component.menu.Menuitem
|
renderer-class |
NONE
|
tag-class |
net.sf.yui4jsf.component.menu.MenuitemTag
|
Usage
<yui:menu tiered="{true|false}">
<yui:submenu title="Mail">
<yui:menuitem text="Gmail" url="http://mail.google.com"></yui:menuitem>
<yui:menuitem text="Yahoo Mail" url="http://mail.yahoo.com"></yui:menuitem>
<yui:menuitem text="Hotmail" url="http://www.hotmail.com" target="_blank"></yui:menuitem>
</yui:submenu>
<yui:submenu title="Sports">
<yui:menuitem text="FIFA" url="http://www.fifa.com"></yui:menuitem>
<yui:menuitem text="NBA" url="http://www.nba.com"></yui:menuitem>
</yui:submenu>
<yui:submenu title="Videos">
<yui:menuitem text="YouTube" url="http://www.youtube.com"></yui:menuitem>
<yui:menuitem text="Google Video" url="http://video.google.com"></yui:menuitem>
</yui:submenu>
</yui:menu>
Attributes
<yui:menuitem>
Standart Attributes - id, rendered, binding
text - Menuitem name to be displayed.
url - URL that will be navigated to when the menu item is selected.
target - Target element of the submenu's anchor element.
Instructions
see menu.jsp, multitieredMenu.jsp and menuBar.jsp for examples
Upcoming Features
- Styling
Additional Information
NONE