9.0 Released! → Native ESM runtimes 🚀, Vite support ⚡️, multi-window apps and more...
Read Announcement

Defined in: ui/action-bar/index.d.ts:292

Represents the navigation (a.k.a. "back") button.

Extends

Constructors

Constructor

ts
new NavigationButton(): NavigationButton;

Defined in: ui/core/view-base/index.ts

Returns

NavigationButton

Inherited from

ActionItem.constructor

Properties

_automaticallyAdjustsScrollViewInsets

ts
_automaticallyAdjustsScrollViewInsets: boolean;

Defined in: ui/core/view-base/index.ts

Inherited from

ActionItem._automaticallyAdjustsScrollViewInsets


_context

ts
_context: any;

Defined in: ui/core/view-base/index.ts

Inherited from

ActionItem._context


_cssState

ts
_cssState: CssState;

Defined in: ui/core/view-base/index.ts

Inherited from

ActionItem._cssState


_defaultPaddingBottom

ts
protected _defaultPaddingBottom: number;

Defined in: ui/core/view-base/index.ts

Inherited from

ActionItem._defaultPaddingBottom


_defaultPaddingLeft

ts
protected _defaultPaddingLeft: number;

Defined in: ui/core/view-base/index.ts

Inherited from

ActionItem._defaultPaddingLeft


_defaultPaddingRight

ts
protected _defaultPaddingRight: number;

Defined in: ui/core/view-base/index.ts

Inherited from

ActionItem._defaultPaddingRight


_defaultPaddingTop

ts
protected _defaultPaddingTop: number;

Defined in: ui/core/view-base/index.ts

Inherited from

ActionItem._defaultPaddingTop


_domId

ts
_domId: number;

Defined in: ui/core/view-base/index.ts

Inherited from

ActionItem._domId


_ignoreFlexMinWidthHeightReset

ts
_ignoreFlexMinWidthHeightReset: boolean;

Defined in: ui/core/view-base/index.ts

Inherited from

ActionItem._ignoreFlexMinWidthHeightReset


_isAddedToNativeVisualTree

ts
_isAddedToNativeVisualTree: boolean;

Defined in: ui/core/view-base/index.ts

Inherited from

ActionItem._isAddedToNativeVisualTree


_isPaddingRelative

ts
protected _isPaddingRelative: boolean;

Defined in: ui/core/view-base/index.ts

Inherited from

ActionItem._isPaddingRelative


_isStyleScopeHost

ts
_isStyleScopeHost: boolean;

Defined in: ui/core/view-base/index.ts

Inherited from

ActionItem._isStyleScopeHost


_oldBottom

ts
_oldBottom: number;

Defined in: ui/core/view-base/index.ts

Inherited from

ActionItem._oldBottom


_oldLeft

ts
_oldLeft: number;

Defined in: ui/core/view-base/index.ts

Inherited from

ActionItem._oldLeft


_oldRight

ts
_oldRight: number;

Defined in: ui/core/view-base/index.ts

Inherited from

ActionItem._oldRight


_oldTop

ts
_oldTop: number;

Defined in: ui/core/view-base/index.ts

Inherited from

ActionItem._oldTop


_styleScope

ts
_styleScope: StyleScope;

Defined in: ui/core/view-base/index.ts

Inherited from

ActionItem._styleScope


_suspendNativeUpdatesCount

ts
_suspendNativeUpdatesCount: number;

Defined in: ui/core/view-base/index.ts

Determines the depth of suspended updates. When the value is 0 the current property updates are not batched nor scoped and must be immediately applied. If the value is 1 or greater, the current updates are batched and does not have to provide immediate update. Do not set this field, the _batchUpdate method is responsible to keep the count up to date, as well as adding/rmoving the view to/from the visual tree.

Inherited from

ActionItem._suspendNativeUpdatesCount


actionBar

ts
actionBar: ActionBar;

Defined in: ui/action-bar/index.d.ts:162

Gets the action bar that contains the action item.

Inherited from

ActionItem.actionBar


actionView

ts
actionView: View;

Defined in: ui/action-bar/index.d.ts:150

Gets or sets the custom action view of the action item.

Ns Property

Inherited from

ActionItem.actionView


alignSelf

ts
alignSelf: AlignSelf;

Defined in: ui/core/view-base/index.ts

(Android-only) Overrides the alignItems value for the child.

Ns Property

Inherited from

ActionItem.alignSelf


android

ts
android: AndroidActionItemSettings;

Defined in: ui/action-bar/index.d.ts:198

Gets the Android specific options of the action item.

Inherited from

ActionItem.android


bindingContext

ts
bindingContext: any;

Defined in: ui/core/view-base/index.ts

Ns Property

Inherited from

ActionItem.bindingContext


className

ts
className: string;

Defined in: ui/core/view-base/index.ts

Gets or sets the CSS class name for this view.

Ns Property

Inherited from

ActionItem.className


col

ts
col: number;

Defined in: ui/core/view-base/index.ts

The column for the element. The columns are 0-indexed, so the first column is indicated by 0.

Ns Property

Inherited from

ActionItem.col


colSpan

ts
colSpan: number;

Defined in: ui/core/view-base/index.ts

The number of columns for the element to span across.

Ns Property

Inherited from

ActionItem.colSpan


column

ts
column: number;

Defined in: ui/core/view-base/index.ts

The column for the element. The columns are 0-indexed, so the first column is indicated by 0.

Ns Property

Inherited from

ActionItem.column


columnSpan

ts
columnSpan: number;

Defined in: ui/core/view-base/index.ts

Ns Property

Inherited from

ActionItem.columnSpan


cssClasses

ts
readonly cssClasses: Set<string>;

Defined in: ui/core/view-base/index.ts

Inherited from

ActionItem.cssClasses


cssPseudoClasses

ts
readonly cssPseudoClasses: Set<string>;

Defined in: ui/core/view-base/index.ts

Inherited from

ActionItem.cssPseudoClasses


defaultVisualState

ts
defaultVisualState: string;

Defined in: ui/core/view-base/index.ts

Default visual state, defaults to 'normal'

Ns Property

Inherited from

ActionItem.defaultVisualState


dock

ts
dock: "left" | "right" | "top" | "bottom";

Defined in: ui/core/view-base/index.ts

Dock position of the view within its parent.

Ns Property

Inherited from

ActionItem.dock


domNode

ts
domNode: DOMNode;

Defined in: ui/core/view-base/index.ts

Inherited from

ActionItem.domNode


effectiveBorderBottomWidth

ts
effectiveBorderBottomWidth: number;

Defined in: ui/core/view-base/index.ts

Inherited from

ActionItem.effectiveBorderBottomWidth


effectiveBorderLeftWidth

ts
effectiveBorderLeftWidth: number;

Defined in: ui/core/view-base/index.ts

Inherited from

ActionItem.effectiveBorderLeftWidth


effectiveBorderRightWidth

ts
effectiveBorderRightWidth: number;

Defined in: ui/core/view-base/index.ts

Inherited from

ActionItem.effectiveBorderRightWidth


effectiveBorderTopWidth

ts
effectiveBorderTopWidth: number;

Defined in: ui/core/view-base/index.ts

Inherited from

ActionItem.effectiveBorderTopWidth


effectiveHeight

ts
effectiveHeight: number;

Defined in: ui/core/view-base/index.ts

Inherited from

ActionItem.effectiveHeight


effectiveLeft

ts
effectiveLeft: number;

Defined in: ui/core/view-base/index.ts

Inherited from

ActionItem.effectiveLeft


effectiveMarginBottom

ts
effectiveMarginBottom: number;

Defined in: ui/core/view-base/index.ts

Inherited from

ActionItem.effectiveMarginBottom


effectiveMarginLeft

ts
effectiveMarginLeft: number;

Defined in: ui/core/view-base/index.ts

Inherited from

ActionItem.effectiveMarginLeft


effectiveMarginRight

ts
effectiveMarginRight: number;

Defined in: ui/core/view-base/index.ts

Inherited from

ActionItem.effectiveMarginRight


effectiveMarginTop

ts
effectiveMarginTop: number;

Defined in: ui/core/view-base/index.ts

Inherited from

ActionItem.effectiveMarginTop


effectiveMinHeight

ts
effectiveMinHeight: number;

Defined in: ui/core/view-base/index.ts

Inherited from

ActionItem.effectiveMinHeight


effectiveMinWidth

ts
effectiveMinWidth: number;

Defined in: ui/core/view-base/index.ts

Inherited from

ActionItem.effectiveMinWidth


effectiveTop

ts
effectiveTop: number;

Defined in: ui/core/view-base/index.ts

Inherited from

ActionItem.effectiveTop


effectiveWidth

ts
effectiveWidth: number;

Defined in: ui/core/view-base/index.ts

Inherited from

ActionItem.effectiveWidth


flexGrow

ts
flexGrow: number;

Defined in: ui/core/view-base/index.ts

Indicates that the child should grow in size, if necessary. Sets how much the child will grow in proportion to the rest of the child elements in the flex container.

Ns Property

Inherited from

ActionItem.flexGrow


flexShrink

ts
flexShrink: number;

Defined in: ui/core/view-base/index.ts

Indicates that the child should shrink when the row runs out of space. Sets how much the flex item will shrink in proportion to the rest of the child elements in the flex container. When not specified, its value is set to 1.

Ns Property

Inherited from

ActionItem.flexShrink


flexWrapBefore

ts
flexWrapBefore: boolean;

Defined in: ui/core/view-base/index.ts

When true, forces the item to wrap onto a new line.

Ns Property

Inherited from

ActionItem.flexWrapBefore


hidden

ts
hidden: boolean;

Defined in: ui/core/view-base/index.ts

Gets or sets the visual state of the view.

Ns Property

Inherited from

ActionItem.hidden


icon

ts
icon: string;

Defined in: ui/action-bar/index.d.ts:143

Gets or sets the icon of the action item.

Ns Property

Inherited from

ActionItem.icon


id

ts
id: string;

Defined in: ui/core/view-base/index.ts

Gets or sets the id for this view.

Ns Property

Inherited from

ActionItem.id


ios

ts
ios: IOSActionItemSettings;

Defined in: ui/action-bar/index.d.ts:192

Gets the iOS specific options of the action item.

Inherited from

ActionItem.ios


isCollapsed

ts
isCollapsed: any;

Defined in: ui/core/view-base/index.ts

Returns true if visibility is set to 'collapse'. Default(false) set in prototype Readonly property

Inherited from

ActionItem.isCollapsed


left

ts
left: LengthType;

Defined in: ui/core/view-base/index.ts

Gets or sets the distance, in pixels, between the left edge of the child and the left edge of its parent.

Ns Property

Inherited from

ActionItem.left


mIsRootView

ts
mIsRootView: boolean;

Defined in: ui/core/view-base/index.ts

if _setupAsRootView is called it means it is not supposed to be added to a parent. However parent can be set before for the purpose of CSS variables/classes. That variable ensures that _addViewToNativeVisualTree is not called in _setupAsRootView

Inherited from

ActionItem.mIsRootView


nativeViewProtected

ts
nativeViewProtected: any;

Defined in: ui/core/view-base/index.ts

read-only. If you want to set out-of-band the nativeView use the setNativeView method.

Inherited from

ActionItem.nativeViewProtected


order

ts
order: number;

Defined in: ui/core/view-base/index.ts

Sets the order in which child elements inside a Flex appear in relation to one another.

Ns Property

Inherited from

ActionItem.order


parent

ts
parent: ViewBase;

Defined in: ui/core/view-base/index.ts

Gets the parent view. This property is read-only.

Inherited from

ActionItem.parent


recycleNativeView

ts
recycleNativeView: "auto" | "always" | "never";

Defined in: ui/core/view-base/index.ts

Inherited from

ActionItem.recycleNativeView


reusable

ts
reusable: boolean;

Defined in: ui/core/view-base/index.ts

Gets or sets if the view is reusable. Reusable views are not automatically destroyed when removed from the View tree.

Ns Property

Inherited from

ActionItem.reusable


row

ts
row: number;

Defined in: ui/core/view-base/index.ts

The row for the element. The rows are 0-indexed, so the first row is indicated by 0.

Ns Property

Inherited from

ActionItem.row


rowSpan

ts
rowSpan: number;

Defined in: ui/core/view-base/index.ts

The number of rows for the element to span across.

Ns Property

Inherited from

ActionItem.rowSpan


sharedTransitionIgnore

ts
sharedTransitionIgnore: boolean;

Defined in: ui/core/view-base/index.ts

Opt out of shared transition under different binding conditions

Ns Property

Inherited from

ActionItem.sharedTransitionIgnore


sharedTransitionTag

ts
sharedTransitionTag: string;

Defined in: ui/core/view-base/index.ts

Gets or sets the shared transition tag for animated view transitions

Ns Property

Inherited from

ActionItem.sharedTransitionTag


text

ts
text: string;

Defined in: ui/action-bar/index.d.ts:136

Gets or sets the text of the action item.

Ns Property

Inherited from

ActionItem.text


top

ts
top: LengthType;

Defined in: ui/core/view-base/index.ts

Gets or sets the distance, in pixels, between the top edge of the child and the top edge of its parent.

Ns Property

Inherited from

ActionItem.top


viewController

ts
viewController: any;

Defined in: ui/core/view-base/index.ts

returns the native UIViewController.

Inherited from

ActionItem.viewController


visibility

ts
visibility: string;

Defined in: ui/action-bar/index.d.ts:157

Gets or sets the visibility of the action item.

Ns Property

Inherited from

ActionItem.visibility


createdEvent

ts
static createdEvent: string;

Defined in: ui/core/view-base/index.ts

String value used when hooking to creation event

Ns Event

created

Inherited from

ActionItem.createdEvent


disposeNativeViewEvent

ts
static disposeNativeViewEvent: string;

Defined in: ui/core/view-base/index.ts

String value used when hooking to disposeNativeView event

Ns Event

disposeNativeView

Inherited from

ActionItem.disposeNativeViewEvent


loadedEvent

ts
static loadedEvent: string;

Defined in: ui/core/view-base/index.ts

String value used when hooking to loaded event.

Ns Event

loaded

Inherited from

ActionItem.loadedEvent


propertyChangeEvent

ts
static propertyChangeEvent: string;

Defined in: data/observable/index.ts

String value used when hooking to propertyChange event.

Ns Event

propertyChange

Inherited from

ActionItem.propertyChangeEvent


tapEvent

ts
static tapEvent: string;

Defined in: ui/action-bar/index.d.ts:129

String value used when hooking to layoutChanged event.

Ns Event

tap

Inherited from

ActionItem.tapEvent


unloadedEvent

ts
static unloadedEvent: string;

Defined in: ui/core/view-base/index.ts

String value used when hooking to unloaded event.

Ns Event

unloaded

Inherited from

ActionItem.unloadedEvent

Accessors

class

Get Signature

ts
get class(): string;

Defined in: ui/core/view-base/index.ts

Returns

string

Set Signature

ts
set class(v: string): void;

Defined in: ui/core/view-base/index.ts

Parameters
ParameterType
vstring
Returns

void

Inherited from

ActionItem.class


effectivePaddingBottom

Get Signature

ts
get effectivePaddingBottom(): number;

Defined in: ui/core/view-base/index.ts

Returns

number

Set Signature

ts
set effectivePaddingBottom(v: number): void;

Defined in: ui/core/view-base/index.ts

Parameters
ParameterType
vnumber
Returns

void

Inherited from

ActionItem.effectivePaddingBottom


effectivePaddingLeft

Get Signature

ts
get effectivePaddingLeft(): number;

Defined in: ui/core/view-base/index.ts

Returns

number

Set Signature

ts
set effectivePaddingLeft(v: number): void;

Defined in: ui/core/view-base/index.ts

Parameters
ParameterType
vnumber
Returns

void

Inherited from

ActionItem.effectivePaddingLeft


effectivePaddingRight

Get Signature

ts
get effectivePaddingRight(): number;

Defined in: ui/core/view-base/index.ts

Returns

number

Set Signature

ts
set effectivePaddingRight(v: number): void;

Defined in: ui/core/view-base/index.ts

Parameters
ParameterType
vnumber
Returns

void

Inherited from

ActionItem.effectivePaddingRight


effectivePaddingTop

Get Signature

ts
get effectivePaddingTop(): number;

Defined in: ui/core/view-base/index.ts

Returns

number

Set Signature

ts
set effectivePaddingTop(v: number): void;

Defined in: ui/core/view-base/index.ts

Parameters
ParameterType
vnumber
Returns

void

Inherited from

ActionItem.effectivePaddingTop


isLoaded

Get Signature

ts
get isLoaded(): boolean;

Defined in: ui/core/view-base/index.ts

Returns

boolean

Inherited from

ActionItem.isLoaded


nativeView

Get Signature

ts
get nativeView(): any;

Defined in: ui/core/view-base/index.ts

Returns

any

Set Signature

ts
set nativeView(value: any): void;

Defined in: ui/core/view-base/index.ts

Parameters
ParameterType
valueany
Returns

void

Inherited from

ActionItem.nativeView


page

Get Signature

ts
get page(): Page;

Defined in: ui/core/view-base/index.ts

Gets owner page. This is a read-only property.

Returns

Page

Inherited from

ActionItem.page


parentNode

Get Signature

ts
get parentNode(): ViewBase;

Defined in: ui/core/view-base/index.ts

Gets the template parent or the native parent. Sets the template parent.

Returns

ViewBase

Set Signature

ts
set parentNode(node: ViewBase): void;

Defined in: ui/core/view-base/index.ts

Parameters
ParameterType
nodeViewBase
Returns

void

Inherited from

ActionItem.parentNode


style

Get Signature

ts
get style(): Style;

Defined in: ui/core/view-base/index.ts

Gets the style object associated to this view.

Returns

Style

Set Signature

ts
set style(inlineStyle: Style): void;

Defined in: ui/core/view-base/index.ts

Ns Property
Parameters
ParameterType
inlineStyleStyle
Returns

void

Inherited from

ActionItem.style


typeName

Get Signature

ts
get typeName(): string;

Defined in: ui/core/view-base/index.ts

Gets the name of the constructor function for this instance. E.g. for a Button class this will return "Button".

Returns

string

Inherited from

ActionItem.typeName


visualState

Get Signature

ts
get visualState(): string;

Defined in: ui/core/view-base/index.ts

Deprecated
Returns

string

Inherited from

ActionItem.visualState

Methods

_addView()

ts
_addView(view: ViewBase, atIndex?: number): void;

Defined in: ui/core/view-base/index.ts

Parameters

ParameterType
viewViewBase
atIndex?number

Returns

void

Inherited from

ActionItem._addView


_addViewCore()

ts
_addViewCore(view: ViewBase, atIndex?: number): void;

Defined in: ui/core/view-base/index.ts

Method is intended to be overridden by inheritors and used as "protected"

Parameters

ParameterType
viewViewBase
atIndex?number

Returns

void

Inherited from

ActionItem._addViewCore


_addViewToNativeVisualTree()

ts
_addViewToNativeVisualTree(view: ViewBase, atIndex?: number): boolean;

Defined in: ui/core/view-base/index.ts

Performs the core logic of adding a child view to the native visual tree. Returns true if the view's native representation has been successfully added, false otherwise. Method is intended to be overridden by inheritors and used as "protected".

Parameters

ParameterType
viewViewBase
atIndex?number

Returns

boolean

Inherited from

ActionItem._addViewToNativeVisualTree


_addVisualState()

ts
_addVisualState(state: string): void;

Defined in: ui/core/view-base/index.ts

Parameters

ParameterType
statestring

Returns

void

Inherited from

ActionItem._addVisualState


_applyXmlAttribute()

ts
_applyXmlAttribute(attribute: string, value: string): boolean;

Defined in: ui/core/view-base/index.ts

Parameters

ParameterType
attributestring
valuestring

Returns

boolean

Deprecated

This used to be the way to set attribute values in early {N} versions. Now attributes are expected to be set as plain properties on the view instances.

Inherited from

ActionItem._applyXmlAttribute


_batchUpdate()

ts
_batchUpdate<T>(callback: () => T): T;

Defined in: ui/core/view-base/index.ts

Allow multiple updates to be performed on the instance at once.

Type Parameters

Type Parameter
T

Parameters

ParameterType
callback() => T

Returns

T

Inherited from

ActionItem._batchUpdate


_childIndexToNativeChildIndex()

ts
_childIndexToNativeChildIndex(index?: number): number;

Defined in: ui/core/view-base/index.ts

Parameters

ParameterType
index?number

Returns

number

Inherited from

ActionItem._childIndexToNativeChildIndex


_createPropertyChangeData()

ts
_createPropertyChangeData(
   propertyName: string, 
   value: any, 
   oldValue?: any): PropertyChangeData;

Defined in: data/observable/index.ts

This method is intended to be overriden by inheritors to provide additional implementation.

Parameters

ParameterType
propertyNamestring
valueany
oldValue?any

Returns

PropertyChangeData

Inherited from

ActionItem._createPropertyChangeData


_dialogClosed()

ts
_dialogClosed(): void;

Defined in: ui/core/view-base/index.ts

Method is intended to be overridden by inheritors and used as "protected"

Returns

void

Inherited from

ActionItem._dialogClosed


_emit()

ts
_emit(eventName: string): void;

Defined in: data/observable/index.ts

Parameters

ParameterType
eventNamestring

Returns

void

Inherited from

ActionItem._emit


_goToVisualState()

ts
_goToVisualState(state: string): void;

Defined in: ui/core/view-base/index.ts

Parameters

ParameterType
statestring

Returns

void

Deprecated

Use View._addVisualState() and View._removeVisualState() instead.

Inherited from

ActionItem._goToVisualState


_inheritStyles()

ts
_inheritStyles(view: ViewBase): void;

Defined in: ui/core/view-base/index.ts

Parameters

ParameterType
viewViewBase

Returns

void

Inherited from

ActionItem._inheritStyles


_inheritStyleScope()

ts
_inheritStyleScope(styleScope: StyleScope): void;

Defined in: ui/core/view-base/index.ts

Parameters

ParameterType
styleScopeStyleScope

Returns

void

Inherited from

ActionItem._inheritStyleScope


_layoutParent()

ts
_layoutParent(): void;

Defined in: ui/core/view-base/index.ts

Returns

void

Inherited from

ActionItem._layoutParent


_onRootViewReset()

ts
_onRootViewReset(): void;

Defined in: ui/core/view-base/index.ts

Method is intended to be overridden by inheritors and used as "protected"

Returns

void

Inherited from

ActionItem._onRootViewReset


_parentChanged()

ts
_parentChanged(oldParent: ViewBase): void;

Defined in: ui/core/view-base/index.ts

Parameters

ParameterType
oldParentViewBase

Returns

void

Inherited from

ActionItem._parentChanged


_removeView()

ts
_removeView(view: ViewBase): void;

Defined in: ui/core/view-base/index.ts

Core logic for removing a child view from this instance. Used by the framework to handle lifecycle events more centralized. Do not use outside the UI Stack implementation.

Parameters

ParameterType
viewViewBase

Returns

void

Inherited from

ActionItem._removeView


_removeViewCore()

ts
_removeViewCore(view: ViewBase): void;

Defined in: ui/core/view-base/index.ts

Method is intended to be overridden by inheritors and used as "protected"

Parameters

ParameterType
viewViewBase

Returns

void

Inherited from

ActionItem._removeViewCore


_removeViewFromNativeVisualTree()

ts
_removeViewFromNativeVisualTree(view: ViewBase): void;

Defined in: ui/core/view-base/index.ts

Method is intended to be overridden by inheritors and used as "protected"

Parameters

ParameterType
viewViewBase

Returns

void

Inherited from

ActionItem._removeViewFromNativeVisualTree


_removeVisualState()

ts
_removeVisualState(state: string): void;

Defined in: ui/core/view-base/index.ts

Parameters

ParameterType
statestring

Returns

void

Inherited from

ActionItem._removeVisualState


_resumeNativeUpdates()

ts
_resumeNativeUpdates(type: SuspendType): void;

Defined in: ui/core/view-base/index.ts

Parameters

ParameterType
typeSuspendType

Returns

void

Inherited from

ActionItem._resumeNativeUpdates


_setDefaultPaddings()

ts
_setDefaultPaddings(insets: any): void;

Defined in: ui/core/view-base/index.ts

Parameters

ParameterType
insetsany

Returns

void

Inherited from

ActionItem._setDefaultPaddings


_setupAsRootView()

ts
_setupAsRootView(context: any): void;

Defined in: ui/core/view-base/index.ts

Parameters

ParameterType
contextany

Returns

void

Inherited from

ActionItem._setupAsRootView


_setupUI()

ts
_setupUI(
   context: any, 
   atIndex?: number, 
   parentIsLoaded?: boolean): void;

Defined in: ui/core/view-base/index.ts

Setups the UI for ViewBase and all its children recursively. This method should not be overridden by derived views.

Parameters

ParameterType
contextany
atIndex?number
parentIsLoaded?boolean

Returns

void

Inherited from

ActionItem._setupUI


_shouldDelayLayout()

ts
_shouldDelayLayout(): boolean;

Defined in: ui/core/view-base/index.ts

When returning true the callLoaded method will be run in setTimeout Method is intended to be overridden by inheritors and used as "protected"

Returns

boolean

Inherited from

ActionItem._shouldDelayLayout


_suspendNativeUpdates()

ts
_suspendNativeUpdates(type: SuspendType): void;

Defined in: ui/core/view-base/index.ts

Parameters

ParameterType
typeSuspendType

Returns

void

Inherited from

ActionItem._suspendNativeUpdates


_tearDownUI()

ts
_tearDownUI(force?: boolean): void;

Defined in: ui/core/view-base/index.ts

Tears down the UI for ViewBase and all its children recursively. This method should not be overridden by derived views.

Parameters

ParameterType
force?boolean

Returns

void

Inherited from

ActionItem._tearDownUI


addEventListener()

ts
addEventListener(
   eventName: string, 
   callback: (data: EventData) => void, 
   thisArg?: any, 
   once?: boolean): void;

Defined in: data/observable/index.ts

Adds a listener for the specified event name.

Parameters

ParameterTypeDescription
eventNamestringName of the event to attach to.
callback(data: EventData) => voidA function to be called when some of the specified event(s) is raised.
thisArg?anyAn optional parameter which when set will be used as "this" in callback method call.
once?booleanAn optional parameter which when set will cause the event listener to fire once.

Returns

void

Inherited from

ActionItem.addEventListener


addPseudoClass()

ts
protected addPseudoClass(name: string): void;

Defined in: ui/core/view-base/index.ts

Parameters

ParameterType
namestring

Returns

void

Unstable

A widget can call this method to add a matching css pseudo class.

Inherited from

ActionItem.addPseudoClass


bind()

ts
bind(options: BindingOptions, source?: Object): void;

Defined in: ui/core/view-base/index.ts

Parameters

ParameterType
optionsBindingOptions
source?Object

Returns

void

Inherited from

ActionItem.bind


callLoaded()

ts
callLoaded(): void;

Defined in: ui/core/view-base/index.ts

Returns

void

Inherited from

ActionItem.callLoaded


callUnloaded()

ts
callUnloaded(): void;

Defined in: ui/core/view-base/index.ts

Returns

void

Inherited from

ActionItem.callUnloaded


closeModal()

ts
closeModal(...args: any[]): void;

Defined in: ui/core/view-base/index.ts

Closes the current modal view that this page is showing.

Parameters

ParameterType
...argsany[]

Returns

void

Inherited from

ActionItem.closeModal


createNativeView()

ts
createNativeView(): Object;

Defined in: ui/core/view-base/index.ts

Creates a native view. Returns either android.view.View or UIView.

Returns

Object

Inherited from

ActionItem.createNativeView


deletePseudoClass()

ts
protected deletePseudoClass(name: string): void;

Defined in: ui/core/view-base/index.ts

Parameters

ParameterType
namestring

Returns

void

Unstable

A widget can call this method to discard matching css pseudo class.

Inherited from

ActionItem.deletePseudoClass


destroyNode()

ts
destroyNode(forceDestroyChildren?: boolean): void;

Defined in: ui/core/view-base/index.ts

Tears down the UI of a reusable node by making it no longer reusable.

Parameters

ParameterTypeDescription
forceDestroyChildren?booleanForce destroy the children (even if they are reusable)

Returns

void

See

_tearDownUI

Inherited from

ActionItem.destroyNode


disposeNativeView()

ts
disposeNativeView(): void;

Defined in: ui/core/view-base/index.ts

Clean up references to the native view.

Returns

void

Inherited from

ActionItem.disposeNativeView


eachChild()

ts
eachChild(callback: (child: ViewBase) => boolean): void;

Defined in: ui/core/view-base/index.ts

Iterates over children of type ViewBase.

Parameters

ParameterTypeDescription
callback(child: ViewBase) => booleanCalled for each child of type ViewBase. Iteration stops if this method returns falsy value.

Returns

void

Inherited from

ActionItem.eachChild


ensureDomNode()

ts
ensureDomNode(): void;

Defined in: ui/core/view-base/index.ts

Returns

void

Unstable

Ensures a dom-node for this view.

Inherited from

ActionItem.ensureDomNode


get()

ts
get(name: string): any;

Defined in: data/observable/index.ts

Gets the value of the specified property.

Parameters

ParameterType
namestring

Returns

any

Inherited from

ActionItem.get


getEffectivePaddingShorthand()

ts
getEffectivePaddingShorthand(): string;

Defined in: ui/core/view-base/index.ts

Returns

string

Inherited from

ActionItem.getEffectivePaddingShorthand


getViewByDomId()

ts
getViewByDomId<T>(domId: number): T;

Defined in: ui/core/view-base/index.ts

Returns the child view with the specified domId.

Type Parameters

Type Parameter
T extends ViewBase

Parameters

ParameterType
domIdnumber

Returns

T

Inherited from

ActionItem.getViewByDomId


getViewById()

ts
getViewById<T>(id: string): T;

Defined in: ui/core/view-base/index.ts

Returns the child view with the specified id.

Type Parameters

Type Parameter
T extends ViewBase

Parameters

ParameterType
idstring

Returns

T

Inherited from

ActionItem.getViewById


hasListeners()

ts
hasListeners(eventName: string): boolean;

Defined in: data/observable/index.ts

Checks whether a listener is registered for the specified event name.

Parameters

ParameterTypeDescription
eventNamestringThe name of the event to check for.

Returns

boolean

Inherited from

ActionItem.hasListeners


initNativeView()

ts
initNativeView(): void;

Defined in: ui/core/view-base/index.ts

Initializes properties/listeners of the native view.

Returns

void

Inherited from

ActionItem.initNativeView


loadView()

ts
loadView(view: ViewBase): void;

Defined in: ui/core/view-base/index.ts

Load view.

Parameters

ParameterTypeDescription
viewViewBaseto load.

Returns

void

Inherited from

ActionItem.loadView


notify()

ts
notify<T>(data: T): void;

Defined in: data/observable/index.ts

Notify this Observable instance with some data. This causes all event handlers on the Observable instance to be called, as well as any 'global' event handlers set on the instance's class.

Type Parameters

Type Parameter
T extends Optional<EventData, "object">

Parameters

ParameterTypeDescription
dataTan object that satisfies the EventData interface, though with an optional 'object' property. If left undefined, the 'object' property will implicitly be set as this Observable instance.

Returns

void

Inherited from

ActionItem.notify


notifyPropertyChange()

ts
notifyPropertyChange(
   name: string, 
   value: any, 
   oldValue?: any): void;

Defined in: data/observable/index.ts

Notifies all the registered listeners for the property change event.

Parameters

ParameterType
namestring
valueany
oldValue?any

Returns

void

Inherited from

ActionItem.notifyPropertyChange


off()

ts
off(
   eventName: string, 
   callback?: (data: EventData) => void, 
   thisArg?: any): void;

Defined in: data/observable/index.ts

Removes the listener(s) for the specified event name.

Parameters

ParameterTypeDescription
eventNamestringThe name of the event.
callback?(data: EventData) => voidAn optional specific event listener to remove (if omitted, all event listeners by this name will be removed).
thisArg?anyAn optional parameter which, when set, will be used to refine search of the correct event listener to be removed.

Returns

void

Inherited from

ActionItem.off


on()

Call Signature

ts
on(eventName: string, callback: (data: EventData) => void): void;

Defined in: ui/action-bar/index.d.ts:174

Adds a listener for the specified event name.

Parameters
ParameterTypeDescription
eventNamestringThe name of the event.
callback(data: EventData) => voidThe event listener to add. Will be called when an event of the given name is raised.
Returns

void

Inherited from

ActionItem.on

Call Signature

ts
on(event: "tap", callback: (args: EventData) => void): void;

Defined in: ui/action-bar/index.d.ts:179

Raised when a tap event occurs.

Parameters
ParameterType
event"tap"
callback(args: EventData) => void
Returns

void

Inherited from

ActionItem.on


once()

ts
once(
   eventName: string, 
   callback: (data: EventData) => void, 
   thisArg?: any): void;

Defined in: data/observable/index.ts

Adds a listener for the specified event name, which, once fired, will remove itself.

Parameters

ParameterTypeDescription
eventNamestringThe name of the event.
callback(data: EventData) => voidThe event listener to add. Will be called when an event of the given name is raised.
thisArg?anyAn optional parameter which, when set, will be bound as the this context when the callback is called. Falsy values will be not be bound.

Returns

void

Inherited from

ActionItem.once


onLoaded()

ts
onLoaded(): void;

Defined in: ui/core/view-base/index.ts

Returns

void

Inherited from

ActionItem.onLoaded


onResumeNativeUpdates()

ts
onResumeNativeUpdates(): void;

Defined in: ui/core/view-base/index.ts

Returns

void

Inherited from

ActionItem.onResumeNativeUpdates


onUnloaded()

ts
onUnloaded(): void;

Defined in: ui/core/view-base/index.ts

Returns

void

Inherited from

ActionItem.onUnloaded


removeEventListener()

ts
removeEventListener(
   eventName: string, 
   callback?: (data: EventData) => void, 
   thisArg?: any): void;

Defined in: data/observable/index.ts

Removes listener(s) for the specified event name.

Parameters

ParameterTypeDescription
eventNamestringName of the event to attach to.
callback?(data: EventData) => voidAn optional parameter pointing to a specific listener. If not defined, all listeners for the event names will be removed.
thisArg?anyAn optional parameter which when set will be used to refine search of the correct callback which will be removed as event listener.

Returns

void

Inherited from

ActionItem.removeEventListener


requestLayout()

ts
requestLayout(): void;

Defined in: ui/core/view-base/index.ts

Invalidates the layout of the view and triggers a new layout pass.

Returns

void

Inherited from

ActionItem.requestLayout


resetNativeView()

ts
resetNativeView(): void;

Defined in: ui/core/view-base/index.ts

Resets properties/listeners set to the native view.

Returns

void

Inherited from

ActionItem.resetNativeView


set()

ts
set(name: string, value: any): void;

Defined in: ui/core/view-base/index.ts

Updates the specified property with the provided value.

Parameters

ParameterType
namestring
valueany

Returns

void

Inherited from

ActionItem.set


setInlineStyle()

ts
setInlineStyle(style: string): void;

Defined in: ui/core/view-base/index.ts

Parameters

ParameterType
stylestring

Returns

void

Inherited from

ActionItem.setInlineStyle


setNativeView()

ts
setNativeView(value: any): void;

Defined in: ui/core/view-base/index.ts

Set the nativeView field performing extra checks and updates to the native properties on the new view. Use in cases where the createNativeView is not suitable. As an example use in item controls where the native parent view will create the native views for child items.

Parameters

ParameterType
valueany

Returns

void

Inherited from

ActionItem.setNativeView


setProperty()

ts
setProperty(name: string, value: any): void;

Defined in: data/observable/index.ts

Updates the specified property with the provided value and raises a property change event and a specific change event based on the property name.

Parameters

ParameterType
namestring
valueany

Returns

void

Inherited from

ActionItem.setProperty


showModal()

Call Signature

ts
showModal(view: ViewBase, modalOptions?: ShowModalOptions): ViewBase;

Defined in: ui/core/view-base/index.ts

Shows the view passed as parameter as a modal view.

Parameters
ParameterTypeDescription
viewViewBaseView instance to be shown modally.
modalOptions?ShowModalOptionsA ShowModalOptions instance
Returns

ViewBase

Inherited from

ActionItem.showModal

Call Signature

ts
showModal(moduleName: string, modalOptions?: ShowModalOptions): ViewBase;

Defined in: ui/core/view-base/index.ts

Shows the View contained in moduleName as a modal view.

Parameters
ParameterTypeDescription
moduleNamestringThe name of the module to load starting from the application root.
modalOptions?ShowModalOptionsA ShowModalOptions instance
Returns

ViewBase

Inherited from

ActionItem.showModal


toString()

ts
toString(): string;

Defined in: ui/core/view-base/index.ts

Returns a string representation of an object.

Returns

string

Inherited from

ActionItem.toString


unbind()

ts
unbind(property: string): void;

Defined in: ui/core/view-base/index.ts

Parameters

ParameterType
propertystring

Returns

void

Inherited from

ActionItem.unbind


unloadView()

ts
unloadView(view: ViewBase): void;

Defined in: ui/core/view-base/index.ts

Unload view.

Parameters

ParameterTypeDescription
viewViewBaseto unload.

Returns

void

Inherited from

ActionItem.unloadView


addEventListener()

ts
static addEventListener(
   eventName: string, 
   callback: (data: EventData) => void, 
   thisArg?: any, 
   once?: boolean): void;

Defined in: data/observable/index.ts

Please avoid using the static event-handling APIs as they will be removed in future.

Parameters

ParameterType
eventNamestring
callback(data: EventData) => void
thisArg?any
once?boolean

Returns

void

Deprecated

Inherited from

ActionItem.addEventListener


off()

ts
static off(
   eventName: string, 
   callback?: (data: EventData) => void, 
   thisArg?: any): void;

Defined in: data/observable/index.ts

Please avoid using the static event-handling APIs as they will be removed in future.

Parameters

ParameterType
eventNamestring
callback?(data: EventData) => void
thisArg?any

Returns

void

Deprecated

Inherited from

ActionItem.off


on()

ts
static on(
   eventName: string, 
   callback: (data: EventData) => void, 
   thisArg?: any, 
   once?: boolean): void;

Defined in: data/observable/index.ts

Please avoid using the static event-handling APIs as they will be removed in future.

Parameters

ParameterType
eventNamestring
callback(data: EventData) => void
thisArg?any
once?boolean

Returns

void

Deprecated

Inherited from

ActionItem.on


once()

ts
static once(
   eventName: string, 
   callback: (data: EventData) => void, 
   thisArg?: any): void;

Defined in: data/observable/index.ts

Please avoid using the static event-handling APIs as they will be removed in future.

Parameters

ParameterType
eventNamestring
callback(data: EventData) => void
thisArg?any

Returns

void

Deprecated

Inherited from

ActionItem.once


removeEventListener()

ts
static removeEventListener(
   eventName: string, 
   callback?: (data: EventData) => void, 
   thisArg?: any): void;

Defined in: data/observable/index.ts

Please avoid using the static event-handling APIs as they will be removed in future.

Parameters

ParameterType
eventNamestring
callback?(data: EventData) => void
thisArg?any

Returns

void

Deprecated

Inherited from

ActionItem.removeEventListener