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

Signals

Signal Handlers

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.


iconSource : url

The image associated with the actionItem. Default value: action.iconSource.


style : Component

Component instantiated immediately and placed below everything else.


text : string

The title of the actionItem. Default value: action.text


Signal Documentation

ActionItem::triggered(var value)

Called when the actionItem is triggered.


Signal Handler Documentation

ActionItem::onTriggered()

If action is set, this will trigger it.


Method Documentation

ActionItem::trigger( value)

Trigger this action item if it is enabled.