Help prepare for 2025 → Answer 8 simple questions on our Fall Survey
Open Survey
Represents an action item in the action bar.

Summary

Constructors

constructor

Properties

actionBar
actionView
android
icon
ios
text
visibility

Methods

on

Constructors

constructor

new ActionItem(): ActionItem

Properties

actionBar

actionBar: ActionBar
Gets the action bar that contains the action item.

actionView

actionView: View
Gets or sets the custom action view of the action item.

android

android: AndroidActionItemSettings
Gets the Android specific options of the action item.

icon

icon: string
Gets or sets the icon of the action item.

ios

ios: IOSActionItemSettings
Gets the iOS specific options of the action item.

text

text: string
Gets or sets the text of the action item.

visibility

visibility: string
Gets or sets the visibility of the action item.

Methods

on

on(eventNames: string, callback: (data: EventData) => void): void
A basic method signature to hook an event listener (shortcut alias to the addEventListener method).
Parameter Default Description
eventNames
string

String corresponding to events (e.g. "propertyChange"). Optionally could be used more events separated by `,` (e.g. "propertyChange", "change").

callback
(data: EventData) => void

Callback function which will be executed when event is raised.

Returns void
on(event: "tap", callback: (args: EventData) => void): void
Raised when a tap event occurs.
Parameter Default Description
event
"tap"

callback
(args: EventData) => void

Returns void
Previous
ActionBar