A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.nativescript.org/api/class/ViewBase below:

ViewBase | API - NativeScript

Summary Constructors Properties _automaticallyAdjustsScrollViewInsets
_automaticallyAdjustsScrollViewInsets: boolean
_defaultPaddingBottom: number
_defaultPaddingLeft: number
_defaultPaddingRight: number
_defaultPaddingTop: number
_ignoreFlexMinWidthHeightReset
_ignoreFlexMinWidthHeightReset: boolean
_isAddedToNativeVisualTree
_isAddedToNativeVisualTree: boolean
_isPaddingRelative: boolean
_isStyleScopeHost: boolean
_suspendNativeUpdatesCount
_suspendNativeUpdatesCount: number

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.

Gets or sets the CSS class name for this view.

cssClasses: Set<string>
cssPseudoClasses: Set<string>
dock: "left" | "right" | "top" | "bottom"
effectiveBorderBottomWidth
effectiveBorderBottomWidth: number
effectiveBorderLeftWidth: number
effectiveBorderRightWidth
effectiveBorderRightWidth: number
effectiveBorderTopWidth: number
effectiveMarginBottom: number
effectiveMarginLeft: number
effectiveMarginRight: number
effectiveMarginTop: number
effectiveMinHeight: number
effectiveMinWidth: number
effectivePaddingBottom: number
effectivePaddingLeft: number
effectivePaddingRight: number
effectivePaddingTop: number

Gets or sets the id for this view.

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

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

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

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

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

sharedTransitionIgnore: boolean

Opt out of shared transition under different binding conditions

sharedTransitionTag: string

Gets or sets the shared transition tag for animated view transitions

returns the native UIViewController.

String value used when hooking to creation event

disposeNativeViewEvent

Static

disposeNativeViewEvent: string

String value used when hooking to disposeNativeView event

String value used when hooking to loaded event.

String value used when hooking to unloaded event.

Accessors

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

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

Gets the style object associated to this view.

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

Returns string

Methods
_addView(view: ViewBase, atIndex?: number): void
_addViewCore(view: ViewBase, atIndex?: number): void

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

Returns void

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

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".

Returns boolean

_applyXmlAttribute(attribute: string, value: string): boolean
_batchUpdate<T>(callback: () => T): T

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

Returns T

_childIndexToNativeChildIndex
_childIndexToNativeChildIndex(index?: number): number

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

Returns void

_goToVisualState(state: string): void
_inheritStyleScope(styleScope: StyleScope): void

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

Returns void

_parentChanged(oldParent: ViewBase): void

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.

Returns void

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

Returns void

_removeViewFromNativeVisualTree
_removeViewFromNativeVisualTree(view: ViewBase): void

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

Returns void

_resumeNativeUpdates(type: SuspendType): void
_setupAsRootView(context: any): void
_setupUI(context: any, atIndex?: number, parentIsLoaded?: boolean): void

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

Returns void

_shouldDelayLayout(): boolean

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

_suspendNativeUpdates(type: SuspendType): void
_tearDownUI(force?: boolean): void

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

Returns void

addPseudoClass(name: string): void
closeModal(...args: any[]): void

Closes the current modal view that this page is showing.

Returns void

createNativeView(): Object

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

Returns Object

deletePseudoClass

Protected

deletePseudoClass(name: string): void
destroyNode(forceDestroyChildren?: boolean): void

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

Returns void

disposeNativeView(): void

Clean up references to the native view.

Returns void

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

Iterates over children of type ViewBase.

Returns void

getViewByDomId<T>(domId: number): T

Returns the child view with the specified domId.

Returns T

getViewById<T>(id: string): T

Returns the child view with the specified id.

Returns T

Initializes properties/listeners of the native view.

Returns void

onResumeNativeUpdates(): void

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

Returns void

Resets properties/listeners set to the native view.

Returns void

set(name: string, value: any): void
setInlineStyle(style: string): void
setNativeView(value: any): void

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.

Returns void

Shows the view passed as parameter as a modal view.

Shows the View contained in moduleName as a modal view.

unbind(property: string): void

Unload view.

Returns void


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4