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:

StyledItem

Inherited By:

AbstractButton, TextField, and ToolbarButton.

Properties

Signals

Methods

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.


Method Documentation

trigger( value)

Trigger this action item if it is enabled.