πŸš€ 8.9 Released! β†’ ⚑️ New Node-API Engine Preview, πŸ“² ns widget ios, πŸ’… Tailwind v4 and more...
Read Announcement
Represents an action item in the action bar.

Summary ​

Constructors

constructor

Properties

actionBar
actionView
android
icon
ios
text
visibility
69 properties inherited from ViewBase
Click to expand
_automaticallyAdjustsScrollViewInsets
_context
_cssState
_defaultPaddingBottom
_defaultPaddingLeft
_defaultPaddingRight
_defaultPaddingTop
_domId
_ignoreFlexMinWidthHeightReset
_isAddedToNativeVisualTree
_isPaddingRelative
_isStyleScopeHost
_oldBottom
_oldLeft
_oldRight
_oldTop
_styleScope
_suspendNativeUpdatesCount
alignSelf
bindingContext
className
col
colSpan
column
columnSpan
createdEvent
cssClasses
cssPseudoClasses
disposeNativeViewEvent
dock
domNode
effectiveBorderBottomWidth
effectiveBorderLeftWidth
effectiveBorderRightWidth
effectiveBorderTopWidth
effectiveHeight
effectiveLeft
effectiveMarginBottom
effectiveMarginLeft
effectiveMarginRight
effectiveMarginTop
effectiveMinHeight
effectiveMinWidth
effectivePaddingBottom
effectivePaddingLeft
effectivePaddingRight
effectivePaddingTop
effectiveTop
effectiveWidth
flexGrow
flexShrink
flexWrapBefore
id
isCollapsed
left
loadedEvent
nativeViewProtected
order
parent
propertyChangeEvent
recycleNativeView
reusable
row
rowSpan
sharedTransitionIgnore
sharedTransitionTag
top
unloadedEvent
viewController

Methods

on
64 methods inherited from ViewBase
Click to expand
_addView
_addViewCore
_addViewToNativeVisualTree
_applyXmlAttribute
_batchUpdate
_childIndexToNativeChildIndex
_createPropertyChangeData
_dialogClosed
_emit
_goToVisualState
_inheritStyleScope
_layoutParent
_onRootViewReset
_parentChanged
_removeView
_removeViewCore
_removeViewFromNativeVisualTree
_resumeNativeUpdates
_setupAsRootView
_setupUI
_shouldDelayLayout
_suspendNativeUpdates
_tearDownUI
addEventListener
addEventListener
addPseudoClass
bind
callLoaded
callUnloaded
closeModal
createNativeView
deletePseudoClass
destroyNode
disposeNativeView
eachChild
ensureDomNode
get
getViewByDomId
getViewById
hasListeners
initNativeView
loadView
notify
notifyPropertyChange
off
off
on
once
once
onLoaded
onResumeNativeUpdates
onUnloaded
removeEventListener
removeEventListener
requestLayout
resetNativeView
set
setInlineStyle
setNativeView
setProperty
showModal
toString
unbind
unloadView

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

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /