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...
Import Statement: | import Ubuntu.Components 0.1 |
Inherits: | |
Inherited By: | AbstractButton, TextField, and ToolbarButton. |
Properties
- action : Action
- iconName : string
- iconSource : url
- style : Component
- text : string
Signals
- triggered(var value)
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.
iconName : string |
The icon associated with the actionItem in the ubuntu-mobile icon theme. Default value: action.iconName.
If both iconSource and iconName are defined, iconName will be ignored.
iconSource : url |
The image associated with the actionItem. Default value: action.iconSource.
If both iconSource and iconName are defined, iconName will be ignored.
style : Component |
Component instantiated immediately and placed below everything else.
text : string |
The title of the actionItem. Default value: action.text
Signal Documentation
triggered(var value) |
Called when the actionItem is triggered.