Classes
Page
Page
Represents a logical unit for navigation (inside Frame).
Summary β
Constructors
Properties
- accessibilityAnnouncePageEnabled
- actionBar
- actionBarHidden
- androidStatusBarBackground
- backgroundSpanUnderStatusBar
- enableSwipeBackNavigation
- frame
- navigatedFromEvent
- navigatedToEvent
- navigatingFromEvent
- navigatingToEvent
- navigationContext
- onAccessibilityPerformEscape
- statusBarStyle
155 properties inherited from PageBase
Click to expand
- _androidContentDescriptionUpdated
- _automaticallyAdjustsScrollViewInsets
- _closeModalCallback
- _context
- _cssState
- _defaultPaddingBottom
- _defaultPaddingLeft
- _defaultPaddingRight
- _defaultPaddingTop
- _domId
- _ignoreFlexMinWidthHeightReset
- _isAddedToNativeVisualTree
- _isLayoutValid
- _isPaddingRelative
- _isStyleScopeHost
- _oldBottom
- _oldLeft
- _oldRight
- _oldTop
- _styleScope
- _suspendNativeUpdatesCount
- accessibilityBlurEvent
- accessibilityFocusChangedEvent
- accessibilityFocusEvent
- accessibilityHidden
- accessibilityHint
- accessibilityIdentifier
- accessibilityLabel
- accessibilityLanguage
- accessibilityLiveRegion
- accessibilityMediaSession
- accessibilityPerformEscapeEvent
- accessibilityRole
- accessibilityState
- accessibilityValue
- accessible
- alignSelf
- android
- androidDynamicElevationOffset
- androidElevation
- automationText
- background
- backgroundColor
- backgroundImage
- bindingContext
- borderBottomColor
- borderBottomLeftRadius
- borderBottomRightRadius
- borderBottomWidth
- borderColor
- borderLeftColor
- borderLeftWidth
- borderRadius
- borderRightColor
- borderRightWidth
- borderTopColor
- borderTopLeftRadius
- borderTopRightRadius
- borderTopWidth
- borderWidth
- boxShadow
- className
- col
- color
- colSpan
- column
- columnSpan
- content
- createdEvent
- cssClasses
- cssPseudoClasses
- cssType
- disposeNativeViewEvent
- dock
- domNode
- effectiveBorderBottomWidth
- effectiveBorderLeftWidth
- effectiveBorderRightWidth
- effectiveBorderTopWidth
- effectiveHeight
- effectiveLeft
- effectiveMarginBottom
- effectiveMarginLeft
- effectiveMarginRight
- effectiveMarginTop
- effectiveMinHeight
- effectiveMinWidth
- effectivePaddingBottom
- effectivePaddingLeft
- effectivePaddingRight
- effectivePaddingTop
- effectiveTop
- effectiveWidth
- flexGrow
- flexShrink
- flexWrapBefore
- height
- horizontalAlignment
- id
- ignoreTouchAnimation
- ios
- iosAccessibilityAdjustsFontSize
- iosAccessibilityMaxFontScale
- iosAccessibilityMinFontScale
- iosIgnoreSafeArea
- iosOverflowSafeArea
- iosOverflowSafeAreaEnabled
- isCollapsed
- isEnabled
- isLayoutValid
- isUserInteractionEnabled
- layoutChangedEvent
- left
- loadedEvent
- margin
- marginBottom
- marginLeft
- marginRight
- marginTop
- minHeight
- minWidth
- modal
- nativeViewProtected
- opacity
- order
- originX
- originY
- parent
- perspective
- propertyChangeEvent
- recycleNativeView
- reusable
- rotate
- rotateX
- rotateY
- row
- rowSpan
- scaleX
- scaleY
- sharedTransitionIgnore
- sharedTransitionTag
- showingModallyEvent
- shownModallyEvent
- testID
- top
- touchAnimation
- touchDelay
- transitionId
- translateX
- translateY
- unloadedEvent
- verticalAlignment
- viewController
- visibility
- width
Methods
112 methods inherited from PageBase
Click to expand
- _addChildFromBuilder
- _addView
- _addViewCore
- _addViewToNativeVisualTree
- _applyXmlAttribute
- _batchUpdate
- _childIndexToNativeChildIndex
- _closeAllModalViewsInternal
- _createPropertyChangeData
- _dialogClosed
- _eachLayoutView
- _emit
- _getNativeViewsCount
- _getRootModalViews
- _getValue
- _handleLivesync
- _hasAncestorView
- _hideNativeModalView
- _inheritStyleScope
- _layoutParent
- _observe
- _onAttachedToWindow
- _onDetachedFromWindow
- _onRootViewReset
- _onSizeChanged
- _parentChanged
- _raiseLayoutChangedEvent
- _raiseShowingModallyEvent
- _raiseShownModallyEvent
- _removeView
- _removeViewCore
- _removeViewFromNativeVisualTree
- _resumeNativeUpdates
- _setupAsRootView
- _setupUI
- _setValue
- _shouldDelayLayout
- _showNativeModalView
- _suspendNativeUpdates
- _tearDownUI
- _updateStyleScope
- accessibilityAnnouncement
- addEventListener
- addEventListener
- addPseudoClass
- animate
- bind
- callLoaded
- callUnloaded
- closeModal
- combineMeasuredStates
- createAnimation
- createNativeView
- deletePseudoClass
- destroyNode
- disposeNativeView
- eachChild
- eachChildView
- ensureDomNode
- focus
- get
- getActualSize
- getGestureObservers
- getLocationInWindow
- getLocationOnScreen
- getLocationRelativeTo
- getMeasuredHeight
- getMeasuredState
- getMeasuredWidth
- getSafeAreaInsets
- getViewByDomId
- getViewById
- hasGestureObservers
- hasListeners
- initNativeView
- layout
- layoutChild
- layoutNativeView
- layoutView
- loadView
- measure
- measureChild
- notify
- notifyPropertyChange
- off
- off
- on
- onBackPressed
- once
- once
- onLayout
- onLoaded
- onMeasure
- onResumeNativeUpdates
- onUnloaded
- removeEventListener
- removeEventListener
- requestLayout
- resetNativeView
- resolveSizeAndState
- sendAccessibilityEvent
- set
- setInlineStyle
- setMeasuredDimension
- setNativeView
- setOnTouchListener
- setProperty
- setTestID
- showModal
- toString
- unbind
- unloadView
Constructors β
Properties β
accessibilityAnnouncePageEnabled β
defined in @nativescript/core/ui/page/index.d.ts:111:8
Should page changed be annnounced to the screen reader.
actionBar β
actionBar: ActionBar
defined in @nativescript/core/ui/page/index.d.ts:100:8
Gets the ActionBar for this page.
actionBarHidden β
actionBarHidden: boolean
defined in @nativescript/core/ui/page/index.d.ts:72:8
Used to hide the Navigation Bar in iOS and the Action Bar in Android.
androidStatusBarBackground β
androidStatusBarBackground: Color
defined in @nativescript/core/ui/page/index.d.ts:66:8
Gets or sets the color of the status bar in Android.
backgroundSpanUnderStatusBar β
defined in @nativescript/core/ui/page/index.d.ts:54:8
Gets or sets whether page background spans under status bar.
enableSwipeBackNavigation β
defined in @nativescript/core/ui/page/index.d.ts:77:8
Used to control if swipe back navigation in iOS is enabled. This property is iOS specific. Default value: true
frame β
frame: Frame
defined in @nativescript/core/ui/page/index.d.ts:94:8
Gets the Frame object controlling this instance.
navigationContext β
defined in @nativescript/core/ui/page/index.d.ts:88:8
A property that is used to pass a data from another page (while navigate to).
onAccessibilityPerformEscape β
defined in @nativescript/core/ui/page/index.d.ts:106:8
statusBarStyle β
defined in @nativescript/core/ui/page/index.d.ts:60:8
Gets or sets the style of the status bar.
navigatedFromEvent β
StaticReadonly
defined in @nativescript/core/ui/page/index.d.ts:49:24
String value used when hooking to navigatedFrom event.
navigatedToEvent β
StaticReadonly
defined in @nativescript/core/ui/page/index.d.ts:39:24
String value used when hooking to navigatedTo event.
navigatingFromEvent β
StaticReadonly
defined in @nativescript/core/ui/page/index.d.ts:44:24
String value used when hooking to navigatingFrom event.
navigatingToEvent β
StaticReadonly
defined in @nativescript/core/ui/page/index.d.ts:34:24
String value used when hooking to navigatingTo event.
Methods β
accessibilityScreenChanged β
defined in @nativescript/core/ui/page/index.d.ts:185:1
Announce screen changed
Parameter Default Description
refocus
boolean
Returns void
getKeyframeAnimationWithName β
getKeyframeAnimationWithName(animationName: string): KeyframeAnimationInfo
defined in @nativescript/core/ui/page/index.d.ts:82:1
Returns a CSS keyframe animation with the specified name, if it exists.
Parameter Default Description
animationName
string
Returns KeyframeAnimationInfo
on β
on(eventNames: string, callback: (data: EventData) => void, thisArg?: any): void
defined in @nativescript/core/ui/page/index.d.ts:119:1
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").thisArg
any
An optional parameter which will be used as
`this`
context for callback execution. Returns void
on(event: "navigatingTo", callback: (args: NavigatedData) => void, thisArg?: any): void
defined in @nativescript/core/ui/page/index.d.ts:124:1
Raised when navigation to the page has started.
Parameter Default Description
event
"navigatingTo"
callback
(args: NavigatedData) => void
thisArg
any
Returns void
on(event: "navigatedTo", callback: (args: NavigatedData) => void, thisArg?: any): void
defined in @nativescript/core/ui/page/index.d.ts:129:1
Raised when navigation to the page has finished.
Parameter Default Description
event
"navigatedTo"
callback
(args: NavigatedData) => void
thisArg
any
Returns void
on(event: "navigatingFrom", callback: (args: NavigatedData) => void, thisArg?: any): void
defined in @nativescript/core/ui/page/index.d.ts:134:1
Raised when navigation from the page has started.
Parameter Default Description
event
"navigatingFrom"
callback
(args: NavigatedData) => void
thisArg
any
Returns void
on(event: "navigatedFrom", callback: (args: NavigatedData) => void, thisArg?: any): void
defined in @nativescript/core/ui/page/index.d.ts:139:1
Raised when navigation from the page has finished.
Parameter Default Description
event
"navigatedFrom"
callback
(args: NavigatedData) => void
thisArg
any
Returns void
- Previous
- ObservableArray
- Next
- PageBase
On this page