MenuItem
A widget representing a single menu item in a Menu. May be configured with a checked state which creates a checkbox which may be toggled. Can also be disabled, which affects item appearance and blocks interactions.
Fires events when activated which bubble up through the parent hierarchy and may be listened for on an ancestor. See Menu for more details on usage.
To add a border above a menu item, you can set separator to true. The separator is automatically hidden if the menu item is the first visible item in the menu.
This widget is not intended to be used directly
Configs
Configs are options you supply in a configuration object when creating an instance of this class-
If provided, turns the menu item into a link
-
Set to
trueto display a border above this menu item, if there are other visible menu items before it. -
The
targetattribute for the href config -
The text to be displayed in the item. The text is automatically HTML encoded.
Has a corresponding runtime text property.
Properties
Properties are getters/setters or publicly accessible variables on this class-
Identifies an object as an instance of MenuItem class, or subclass thereof.
Functions
Functions are methods available for calling on the class-
doAction( )