JSMenuItem
Properties Summarized
Methods Summarized
Properties Detailed
callbackArguments
Set/Get the menu item callback arguments (for components that support this)
Type Array
Sample
enabled
Set/Get the menu item enabled state
Type Boolean
Sample
iconStyleClass
Set/Get the menu item space separated icon style classes
Type String
Sample
itemID
The menu name (identifier)
Type String the name (identifier) of the menu item
menuText
Set/Get the menu item text
Type String
Sample
styleClass
Set/Get the menu item space separated style classes
Type String
Sample
tooltipText
Set/Get the menu item tooltip text
Type String
Sample
Methods Detailed
addSubMenuItem(id)
Adds a new menu item, as last item in the list.
Parameters
String id the menu item identifier
Returns: JSMenuItem
Sample
addSubMenuItem(id, index)
Adds a new menu item, at a specific position.
Parameters
Returns: JSMenuItem
Sample
getExtraProperty(String, String)
Returns an extra property value.
Parameters
Returns: Object extra property value
Sample
getSubMenuItem(id)
Gets a child menu item by identifier. Returns null if not found.
Parameters
String id the menu item identifier
Returns: JSMenuItem
Sample
getSubMenuItemAt(index)
Gets a child menu item at index (0 based). Returns null if not found.
Parameters
Number index the menu item index among its sibblings
Returns: JSMenuItem
Sample
getSubMenuItems()
Returns all the child menus items, either created at design time or at runtime, in the order they will show up in user interface.
Returns: Array
Sample
removeSubMenuItem(menuItem)
Removes a menu item from children's list, returns true if element was found an removed
Parameters
JSMenuItem menuItem the menu item to be removed
Returns: Boolean
Sample
removeSubMenuItem(id)
Removes a menu item with given id, returns true if element was found an removed
Parameters
String id the menu item identifier
Returns: Boolean
Sample
Last updated