AbstractView
Abstract class
An abstract view.
Properties
bounds
readonly bounds: Rect;
The view bounds in its parent coordinate space.
hasExplicitBounds
readonly hasExplicitBounds: boolean;
Whether the view has explicit bounds set with setBounds().
A view without explicit bounds fills its parent view and automatically
resizes with it once attached. Call setBounds(null) to clear explicit
bounds.
isVisible
readonly isVisible: boolean;
Whether the view is visible.
Methods
setBounds()
setBounds(bounds: Rect | null): void;
Sets the bounds of the view in its parent container.
Pass null to clear explicit bounds. A child view without explicit bounds
fills its parent view and automatically resizes with it.
| Parameter | Type | Description |
|---|---|---|
bounds | Rect | null |
show()
show(): void;
Shows the view in its parent container if it is not already visible.
hide()
hide(): void;
Hides the view from its parent container if it is visible.