Action


Represents an action shown in an action bar, context menu, or list. More...
import Material 0.2
Properties and Methods

Detailed Description

Represents an action shown in an action bar, context menu, or list.

One of the most common uses of actions is displaying actions in the action bar of a page using the Page::actions property. See the example for Page for more details.

Properties

hasDividerAfter : bool

Set to true to display a divider between this action and the next action. Used in lists or context menus.

hoverAnimation : bool

Set to true to rotate the icon 90 degrees on mouseover.

iconSource : string

A URL pointing to an image to display as the icon. By default, this is a special URL representing the icon named by iconName from the Material Design icon collection or FontAwesome. The icon will be colorized using the specificed color, unless you put ".color." in the filename, for example, "app-icon.color.svg".

See also iconName and Icon.

name : string

The text displayed for the action.

summary : string

A short summary of the action, which may be displayed depending on the UI showing the action. For example, a list of actions could display the summary as the secondary line of text.

text : alias
No description provided.
tooltip : alias
No description provided.
visible : bool

Set to false to hide the action in the UI.