ActionItem
A visual representation of an Action. The API of ActionItem is a copy of the API of Action, with additional properties to define visual aspects of the ActionItem. More...
Inherits StyledItem
Inherited by AbstractButton, TextField, and ToolbarButton.
Properties
- action : Action
- iconSource : url
- style : Component
- text : string
Signals
- triggered(var value)
Signal Handlers
Methods
- trigger(value)
Detailed Description
If action is set, the values of the other properties will by default be identical to the Action's property values. Setting the other properties will override the properties copied from the Action.
See ToolbarItems for examples of how to use ToolbarButton or other ActionItems in a toolbar.
Property Documentation
action : Action |
The Action associated with this ActionItem. If action is set, the values of the Action properties are copied to the values of the ActionItem properties.
The image associated with the actionItem. Default value: action.iconSource.
The title of the actionItem. Default value: action.text
Signal Documentation
Called when the actionItem is triggered.
Signal Handler Documentation
If action is set, this will trigger it.