πŸš€ 8.9 Released! β†’ ⚑️ New Node-API Engine Preview, πŸ“² ns widget ios, πŸ’… Tailwind v4 and more...
Read Announcement
Base class for all views that supports children positioning.

Summary ​

Constructors

constructor

Properties

clipToBounds
isPassThroughParentEnabled
padding
paddingBottom
paddingLeft
paddingRight
paddingTop
154 properties inherited from CustomLayoutView
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
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

_registerLayoutChild
_unregisterLayoutChild
addChild
eachLayoutChild
getChildAt
getChildIndex
getChildrenCount
insertChild
removeChild
removeChildren
112 methods inherited from CustomLayoutView
Click to expand
_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
accessibilityScreenChanged
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
loadView
measure
measureChild
notify
notifyPropertyChange
off
off
on
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 ​

constructor ​

new LayoutBase(): LayoutBase 

Properties ​

clipToBounds ​

clipToBounds: boolean
Gets or sets a value indicating whether to clip the content of this layout.

isPassThroughParentEnabled ​

isPassThroughParentEnabled: boolean
Gets or sets a value indicating whether touch event should pass through to a parent view of the layout container in case an interactive child view did not handle it. Default value of this property is false. This does not affect the appearance of the view.

padding ​

padding: string | number | LengthDipUnit | LengthPxUnit 
Gets or sets padding style property.

paddingBottom ​

paddingBottom: LengthType 
Specify the bottom padding of this layout.

paddingLeft ​

paddingLeft: LengthType 
Specify the left padding of this layout.

paddingRight ​

paddingRight: LengthType 
Specify the right padding of this layout.

paddingTop ​

paddingTop: LengthType 
Specify the top padding of this layout.

Methods ​

_registerLayoutChild ​

_registerLayoutChild(child: View): void
INTERNAL. Used by the layout system.
Parameter Default Description
child
Returns void

_unregisterLayoutChild ​

_unregisterLayoutChild(child: View): void
INTERNAL. Used by the layout system.
Parameter Default Description
child
Returns void

addChild ​

addChild(view: View): void
Adds the view to children array.
Parameter Default Description
view

The view to be added to the end of the children array.

Returns void

eachLayoutChild ​

eachLayoutChild(callback: (child: View, isLast: boolean) => void): void
Calls the callback for each child that should be laid out.
Parameter Default Description
callback
(child: View, isLast: boolean) => void

The callback

Returns void

getChildAt ​

getChildAt(index: number): View 
Returns the view at the specified position.
Parameter Default Description
index
number

The position at which to get the child from.

Returns View

getChildIndex ​

getChildIndex(child: View): number
Returns the position of the child view
Parameter Default Description
child

The child view that we are looking for.

Returns number

getChildrenCount ​

getChildrenCount(): number
Returns the number of children in this Layout.
Returns number

insertChild ​

insertChild(child: View, atIndex: number): void
Inserts the view to children array at the specified index.
Parameter Default Description
child
atIndex
number

The insertion index.

Returns void

removeChild ​

removeChild(view: View): void
Removes the specified view from the children array.
Parameter Default Description
view

The view to remove from the children array.

Returns void

removeChildren ​

removeChildren(): void
Removes all views in this layout.
Returns void
Previous
Label

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /