Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ViewBase

Hierarchy

Implements

Implemented by

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

Properties

Private __nativeView

__nativeView: any

Private _androidView

_androidView: Object

_automaticallyAdjustsScrollViewInsets

_automaticallyAdjustsScrollViewInsets: boolean

_context

_context: any

_cssState

_cssState: CssState

_defaultPaddingBottom

_defaultPaddingBottom: number

_defaultPaddingLeft

_defaultPaddingLeft: number

_defaultPaddingRight

_defaultPaddingRight: number

_defaultPaddingTop

_defaultPaddingTop: number

_domId

_domId: number

_ignoreFlexMinWidthHeightReset

_ignoreFlexMinWidthHeightReset: boolean

Private _iosView

_iosView: Object

_isAddedToNativeVisualTree

_isAddedToNativeVisualTree: boolean

Private _isLoaded

_isLoaded: boolean

_isPaddingRelative

_isPaddingRelative: boolean

_isStyleScopeHost

_isStyleScopeHost: boolean

_isViewBase

_isViewBase: boolean

_moduleName

_moduleName: string

_oldBottom

_oldBottom: number

_oldLeft

_oldLeft: number

_oldRight

_oldRight: number

_oldTop

_oldTop: number

Private _onLoadedCalled

_onLoadedCalled: boolean

Private _onUnloadedCalled

_onUnloadedCalled: boolean

Private _style

_style: Style

_styleScope

_styleScope: StyleScope

_suspendNativeUpdatesCount

_suspendNativeUpdatesCount: number

_suspendedUpdates

_suspendedUpdates: object

Type declaration

Private _templateParent

_templateParent: ViewBase

Private _visualState

_visualState: string

alignSelf

alignSelf: AlignSelf

bindingContext

bindingContext: any

Private bindingContextBoundToParentBindingContextChanged

bindingContextBoundToParentBindingContextChanged: boolean

Private bindings

bindings: Map<string, Binding>

className

className: string

col

col: number

colSpan

colSpan: number

column

column: number

columnSpan

columnSpan: number

cssClasses

cssClasses: Set<string>

cssPseudoClasses

cssPseudoClasses: Set<string>

dock

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

domNode

domNode: DOMNode

effectiveBorderBottomWidth

effectiveBorderBottomWidth: number

effectiveBorderLeftWidth

effectiveBorderLeftWidth: number

effectiveBorderRightWidth

effectiveBorderRightWidth: number

effectiveBorderTopWidth

effectiveBorderTopWidth: number

effectiveHeight

effectiveHeight: number

effectiveLeft

effectiveLeft: number

effectiveMarginBottom

effectiveMarginBottom: number

effectiveMarginLeft

effectiveMarginLeft: number

effectiveMarginRight

effectiveMarginRight: number

effectiveMarginTop

effectiveMarginTop: number

effectiveMinHeight

effectiveMinHeight: number

effectiveMinWidth

effectiveMinWidth: number

effectivePaddingBottom

effectivePaddingBottom: number

effectivePaddingLeft

effectivePaddingLeft: number

effectivePaddingRight

effectivePaddingRight: number

effectivePaddingTop

effectivePaddingTop: number

effectiveTop

effectiveTop: number

effectiveWidth

effectiveWidth: number

flexGrow

flexGrow: number

flexShrink

flexShrink: number

flexWrapBefore

flexWrapBefore: boolean

id

id: string

isCollapsed

isCollapsed: any

left

left: Length

nativeViewProtected

nativeViewProtected: any

order

order: number

parent

parent: ViewBase

Private pseudoClassAliases

pseudoClassAliases: object

Type declaration

  • highlighted: string[]

recycleNativeView

recycleNativeView: "auto" | "always" | "never"

row

row: number

rowSpan

rowSpan: number

Private shouldAddHandlerToParentBindingContextChanged

shouldAddHandlerToParentBindingContextChanged: boolean

top

top: Length

viewController

viewController: any

Static createdEvent

createdEvent: string

Static loadedEvent

loadedEvent: string

Static propertyChangeEvent

propertyChangeEvent: string

Static unloadedEvent

unloadedEvent: string

Accessors

android

  • get (): any

class

  • get (): string
  • set (v: string): void

ios

  • get (): any

isLoaded

  • get (): boolean

nativeView

  • get (): any
  • set (value: any): void

page

parentNode

style

typeName

  • get (): string

Methods

_addView

  • _addView(view: ViewBase, atIndex?: number): void

_addViewCore

  • _addViewCore(view: ViewBase, atIndex?: number): void

_addViewToNativeVisualTree

  • _addViewToNativeVisualTree(view: ViewBase, atIndex?: number): boolean

_applyXmlAttribute

  • _applyXmlAttribute(attribute: string, value: string): 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.

    Parameters

    • attribute: string
    • value: string

    Returns boolean

_batchUpdate

  • _batchUpdate<T>(callback: function): T

_childIndexToNativeChildIndex

  • _childIndexToNativeChildIndex(index?: number): number

_createPropertyChangeData

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

_dialogClosed

  • _dialogClosed(): void

_emit

  • _emit(eventNames: string): void

_goToVisualState

  • _goToVisualState(state: string): void

_inheritStyleScope

  • _inheritStyleScope(styleScope: StyleScope): void

_layoutParent

  • _layoutParent(): void

_onCssStateChange

  • _onCssStateChange(): void

_onRootViewReset

  • _onRootViewReset(): void

_parentChanged

  • _parentChanged(oldParent: ViewBase): void

_removeView

  • 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

    Returns void

_removeViewCore

_removeViewFromNativeVisualTree

  • _removeViewFromNativeVisualTree(view: ViewBase): void

_resumeNativeUpdates

  • _resumeNativeUpdates(type: SuspendType): void

_setupAsRootView

  • _setupAsRootView(context: any): void

_setupUI

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

_shouldDelayLayout

  • _shouldDelayLayout(): boolean

_suspendNativeUpdates

  • _suspendNativeUpdates(type: SuspendType): void

_tearDownUI

  • _tearDownUI(force?: boolean): void

addEventListener

  • addEventListener(eventNames: string, callback: function, thisArg?: any): void

addPseudoClass

  • addPseudoClass(name: string): void

bind

Private bindingContextChanged

Private callFunctionWithSuper

  • callFunctionWithSuper(flag: Flags, func: function): void

callLoaded

  • callLoaded(): void

callUnloaded

  • callUnloaded(): void

closeModal

  • closeModal(...args: any[]): void

createNativeView

  • createNativeView(): Object

deletePseudoClass

  • deletePseudoClass(name: string): void

disposeNativeView

  • disposeNativeView(): void

eachChild

  • eachChild(callback: function): void

ensureDomNode

  • ensureDomNode(): void

get

  • get(name: string): any

Private getAllAliasedStates

  • getAllAliasedStates(name: string): string[]

getViewById

  • getViewById<T>(id: string): T

hasListeners

  • hasListeners(eventName: string): boolean

initNativeView

  • initNativeView(): void

Private isFlagSet

  • isFlagSet(flag: Flags): boolean

loadView

notify

  • notify<T>(data: T): void

notifyPropertyChange

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

Private notifyPseudoClassChanged

  • notifyPseudoClassChanged(pseudoClass: string): void

off

  • off(eventNames: string, callback?: any, thisArg?: any): void

on

  • on(eventNames: string, callback: function, thisArg?: any): void

onLoaded

  • onLoaded(): void

onResumeNativeUpdates

  • onResumeNativeUpdates(): void

onUnloaded

  • onUnloaded(): void

once

  • once(event: string, callback: function, thisArg?: any): void

Private performLayout

  • performLayout(currentRun?: number): void

removeEventListener

  • removeEventListener(eventNames: string, callback?: any, thisArg?: any): void

requestLayout

  • requestLayout(): void

resetNativeView

  • resetNativeView(): void

Private resetNativeViewInternal

  • resetNativeViewInternal(): void

set

  • set(name: string, value: any): void

Private setFlag

  • setFlag(flag: Flags, value: boolean): void

setInlineStyle

  • setInlineStyle(style: string): void

setNativeView

  • setNativeView(value: any): void

setProperty

  • setProperty(name: string, value: any): void

showModal

toString

  • toString(): string

unbind

  • unbind(property: string): void

unloadView

Static addEventListener

  • addEventListener(eventName: string, callback: any, thisArg?: any): void

Static off

  • off(eventName: string, callback?: any, thisArg?: any): void

Static on

  • on(eventName: string, callback: any, thisArg?: any): void

Static once

  • once(eventName: string, callback: any, thisArg?: any): void

Static removeEventListener

  • removeEventListener(eventName: string, callback?: any, thisArg?: any): void

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method