Classes
ViewBase
Summary β
Constructors
Properties
- _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
- recycleNativeView
- reusable
- row
- rowSpan
- sharedTransitionIgnore
- sharedTransitionTag
- top
- unloadedEvent
- viewController
1 properties inherited from Observable
Click to expand
Accessors
Methods
- _addView
- _addViewCore
- _addViewToNativeVisualTree
- _applyXmlAttribute
- _batchUpdate
- _childIndexToNativeChildIndex
- _dialogClosed
- _goToVisualState
- _inheritStyleScope
- _layoutParent
- _onRootViewReset
- _parentChanged
- _removeView
- _removeViewCore
- _removeViewFromNativeVisualTree
- _resumeNativeUpdates
- _setupAsRootView
- _setupUI
- _shouldDelayLayout
- _suspendNativeUpdates
- _tearDownUI
- addPseudoClass
- bind
- callLoaded
- callUnloaded
- closeModal
- createNativeView
- deletePseudoClass
- destroyNode
- disposeNativeView
- eachChild
- ensureDomNode
- getViewByDomId
- getViewById
- initNativeView
- loadView
- onLoaded
- onResumeNativeUpdates
- onUnloaded
- requestLayout
- resetNativeView
- set
- setInlineStyle
- setNativeView
- showModal
- toString
- unbind
- unloadView
17 methods inherited from Observable
Click to expand
Constructors β
Properties β
_automaticallyAdjustsScrollViewInsets β
_context β
_cssState β
_defaultPaddingBottom β
_defaultPaddingLeft β
_defaultPaddingRight β
_defaultPaddingTop β
_domId β
_ignoreFlexMinWidthHeightReset β
_isAddedToNativeVisualTree β
_isPaddingRelative β
_isStyleScopeHost β
_oldBottom β
_oldLeft β
_oldRight β
_oldTop β
_styleScope β
_suspendNativeUpdatesCount β
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.
alignSelf β
bindingContext β
className β
Gets or sets the CSS class name for this view.
col β
colSpan β
column β
columnSpan β
cssClasses β
cssPseudoClasses β
dock β
domNode β
effectiveBorderBottomWidth β
effectiveBorderBottomWidth: number
effectiveBorderLeftWidth β
effectiveBorderLeftWidth: number
effectiveBorderRightWidth β
effectiveBorderRightWidth: number
effectiveBorderTopWidth β
effectiveBorderTopWidth: number
effectiveHeight β
effectiveHeight: number
effectiveLeft β
effectiveMarginBottom β
effectiveMarginLeft β
effectiveMarginRight β
effectiveMarginTop β
effectiveMinHeight β
effectiveMinHeight: number
effectiveMinWidth β
effectiveMinWidth: number
effectivePaddingBottom β
effectivePaddingLeft β
effectivePaddingRight β
effectivePaddingTop β
effectiveTop β
effectiveWidth β
effectiveWidth: number
flexGrow β
flexShrink β
flexWrapBefore β
id β
Gets or sets the id for this view.
isCollapsed β
Returns true if visibility is set to 'collapse'.
Default(false) set in prototype
Readonly property
left β
left: LengthType
nativeViewProtected β
read-only. If you want to set out-of-band the nativeView use the setNativeView method.
order β
recycleNativeView β
reusable β
Gets or sets if the view is reusable.
Reusable views are not automatically destroyed when removed from the View tree.
row β
rowSpan β
sharedTransitionIgnore β
Opt out of shared transition under different binding conditions
sharedTransitionTag β
Gets or sets the shared transition tag for animated view transitions
top β
top: LengthType
viewController β
returns the native UIViewController.
createdEvent β
Static
String value used when hooking to creation event
disposeNativeViewEvent β
Static
String value used when hooking to disposeNativeView event
loadedEvent β
Static
String value used when hooking to loaded event.
unloadedEvent β
Static
String value used when hooking to unloaded event.
Accessors β
android β
Returns any
class β
Returns string
ios β
Returns any
isLoaded β
Returns boolean
nativeView β
Returns any
parentNode β
typeName β
Gets the name of the constructor function for this instance. E.g. for a Button class this will return "Button".
Returns string
Methods β
_addViewCore β
_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 β
Parameter Default Description
attribute
string
value
string
Returns boolean
_batchUpdate β
Allow multiple updates to be performed on the instance at once.
Parameter Default Description
callback
() => T
Returns T
_childIndexToNativeChildIndex β
Parameter Default Description
index
number
Returns number
_dialogClosed β
Method is intended to be overridden by inheritors and used as "protected"
Returns void
_goToVisualState β
Parameter Default Description
state
string
Returns void
_inheritStyleScope β
Parameter Default Description
styleScope
StyleScope
Returns void
_layoutParent β
Returns void
_onRootViewReset β
Method is intended to be overridden by inheritors and used as "protected"
Returns void
_parentChanged β
_parentChanged(oldParent: ViewBase): void
Parameter Default Description
oldParent
Returns void
_removeView β
_removeView(view: 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.
Parameter Default Description
view
Returns void
_removeViewCore β
_removeViewCore(view: ViewBase): void
Method is intended to be overridden by inheritors and used as "protected"
Parameter Default Description
view
Returns void
_removeViewFromNativeVisualTree β
_removeViewFromNativeVisualTree(view: ViewBase): void
Method is intended to be overridden by inheritors and used as "protected"
Parameter Default Description
view
Returns void
_resumeNativeUpdates β
Parameter Default Description
type
SuspendType
Returns void
_setupAsRootView β
Parameter Default Description
context
any
Returns void
_setupUI β
Setups the UI for ViewBase and all its children recursively.
This method should *not* be overridden by derived views.
Parameter Default Description
context
any
atIndex
number
parentIsLoaded
boolean
Returns void
_shouldDelayLayout β
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 β
Parameter Default Description
type
SuspendType
Returns void
_tearDownUI β
Tears down the UI for ViewBase and all its children recursively.
This method should *not* be overridden by derived views.
Parameter Default Description
force
boolean
Returns void
addPseudoClass β
Protected
Parameter Default Description
name
string
Returns void
bind β
bind(options: BindingOptions, source?: Object): void
Returns void
callLoaded β
Returns void
callUnloaded β
Returns void
closeModal β
Closes the current modal view that this page is showing.
Parameter Default Description
args
any[]
Returns void
createNativeView β
Creates a native view.
Returns either android.view.View or UIView.
Returns Object
deletePseudoClass β
Protected
Parameter Default Description
name
string
Returns void
destroyNode β
Tears down the UI of a reusable node by making it no longer reusable.
Parameter Default Description
forceDestroyChildren
boolean
Force destroy the children (even if they are reusable)
Returns void
disposeNativeView β
Clean up references to the native view.
Returns void
eachChild β
ensureDomNode β
Returns void
getViewByDomId β
Returns the child view with the specified domId.
Parameter Default Description
domId
number
Returns T
getViewById β
Returns the child view with the specified id.
Parameter Default Description
id
string
Returns T
initNativeView β
Initializes properties/listeners of the native view.
Returns void
onLoaded β
Returns void
onResumeNativeUpdates β
Returns void
onUnloaded β
Returns void
requestLayout β
Invalidates the layout of the view and triggers a new layout pass.
Returns void
resetNativeView β
Resets properties/listeners set to the native view.
Returns void
set β
Parameter Default Description
name
string
value
any
Returns void
setInlineStyle β
Parameter Default Description
style
string
Returns void
setNativeView β
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.
Parameter Default Description
value
any
Returns void
showModal β
showModal(view: ViewBase, modalOptions?: ShowModalOptions): ViewBase
showModal(moduleName: string, modalOptions?: ShowModalOptions): ViewBase
Shows the View contained in moduleName as a modal view.
Parameter Default Description
moduleName
string
The name of the module to load starting from the application root.
Returns ViewBase
toString β
Returns string
unbind β
Parameter Default Description
property
string
Returns void
- Previous
- View
- Next
- ViewCommon
On this page
- Summary
- Constructors
- Properties
- _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
- cssClasses
- cssPseudoClasses
- 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
- nativeViewProtected
- order
- parent
- recycleNativeView
- reusable
- row
- rowSpan
- sharedTransitionIgnore
- sharedTransitionTag
- top
- viewController
- createdEvent
- disposeNativeViewEvent
- loadedEvent
- unloadedEvent
- Accessors
- Methods
- _addView
- _addViewCore
- _addViewToNativeVisualTree
- _applyXmlAttribute
- _batchUpdate
- _childIndexToNativeChildIndex
- _dialogClosed
- _goToVisualState
- _inheritStyleScope
- _layoutParent
- _onRootViewReset
- _parentChanged
- _removeView
- _removeViewCore
- _removeViewFromNativeVisualTree
- _resumeNativeUpdates
- _setupAsRootView
- _setupUI
- _shouldDelayLayout
- _suspendNativeUpdates
- _tearDownUI
- addPseudoClass
- bind
- callLoaded
- callUnloaded
- closeModal
- createNativeView
- deletePseudoClass
- destroyNode
- disposeNativeView
- eachChild
- ensureDomNode
- getViewByDomId
- getViewById
- initNativeView
- loadView
- onLoaded
- onResumeNativeUpdates
- onUnloaded
- requestLayout
- resetNativeView
- set
- setInlineStyle
- setNativeView
- showModal
- toString
- unbind
- unloadView