JSMenuItem
Properties Summarized
Type | Name | Summary |
---|---|---|
Set/Get the menu item callback arguments (for components that support this) | ||
Set/Get the menu item enabled state | ||
Set/Get the menu item space separated icon style classes | ||
The menu name (identifier) | ||
Set/Get the menu item text | ||
Set/Get the menu item space separated style classes | ||
Set/Get the menu item tooltip text |
Methods Summarized
Type | Name | Summary |
---|---|---|
Adds a new menu item, as last item in the list. | ||
Adds a new menu item, at a specific position. | ||
Returns an extra property value. | ||
Gets a child menu item by identifier. | ||
Gets a child menu item at index (0 based). | ||
Returns all the child menus items, either created at design time or at runtime, in the order they will show up in user interface. | ||
Removes a menu item from children's list, returns true if element was found an removed | ||
Removes a menu item with given id, returns true if element was found an removed |
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