Extends: Jx.Button
A menu item is a single entry in a menu. It is typically composed of a label and an optional icon. Selecting the menu item emits an event.
Jx.Menu.Item is represented by a Jx.Button with type MenuItem and the associated CSS changes noted in Jx.Button. The container of a MenuItem is an ‘li’ element.
| click | fired when the menu item is clicked. |
Copyright © 2008, DM Solutions Group Inc.
This file is licensed under an MIT style license
| Jx. | Extends: Jx.Button |
| Properties | |
| owner | {<Jx.SubMenu> or Jx.Menu} the menu that contains the menu item. |
| Constructor | |
| Jx. | Create a new instance of Jx.Menu.Item |
| Functions | |
| setOwner | Set the owner of this menu item |
| hide | Hide the menu item. |
| show | Show the menu item |
| clicked | Handle the user clicking on the menu item, overriding the Jx.Button::clicked method to facilitate menu tracking |
| onmouseover | handle the mouse moving over the menu item |
{<Jx.SubMenu> or Jx.Menu} the menu that contains the menu item.
clicked: function( obj )
Handle the user clicking on the menu item, overriding the Jx.Button::clicked method to facilitate menu tracking
| obj | {Object} an object containing an event property that was the user event. |
Set the owner of this menu item
setOwner: function( obj )
Hide the menu item.
hide: function()
Handle the user clicking on the menu item, overriding the Jx.Button::clicked method to facilitate menu tracking
clicked: function( obj )
triggered when the user clicks the button, processes the actionPerformed event
clicked : function( evt )