Accessors
childViews
- get childViews(): ReadonlyArray<View>
-
Returns ReadonlyArray<View>
clientBounds
- get clientBounds(): BoxR2
parentView
- get parentView(): View | null
popoverBounds
- get popoverBounds(): BoxR2
Methods
Abstract appendChildView
- appendChildView(childView: View): void
Protected didAddViewObserver
Protected didInsertChildView
- didInsertChildView(childView: View, targetView: View | null | undefined): void
-
Parameters
-
childView: View
-
targetView: View | null | undefined
Returns void
Protected didObserve
- didObserve(callback: function): void
Protected didRemoveChildView
- didRemoveChildView(childView: View): void
Protected didRemoveViewObserver
Protected didSetKey
- didSetKey(key: string | null): void
Protected didSetParentView
- didSetParentView(parentView: View | null): void
Protected didSetViewController
Abstract dispatchEvent
- dispatchEvent(event: Event): boolean
-
Parameters
Returns boolean
getChildView
- getChildView(key: string): View | null
-
Parameters
Returns View
|
null
Abstract insertChildView
- insertChildView(childView: View, targetView: View | null): void
Abstract key
- key(): string | null
- key(key: string | null): this
-
Returns string
|
null
-
Parameters
Returns this
Abstract off
- off(type: string, listener: EventListenerOrEventListenerObject, options?: EventListenerOptions | boolean): this
-
Parameters
-
type: string
-
listener: EventListenerOrEventListenerObject
-
Optional options: EventListenerOptions | boolean
Returns this
Abstract on
- on(type: string, listener: EventListenerOrEventListenerObject, options?: AddEventListenerOptions | boolean): this
-
Parameters
-
type: string
-
listener: EventListenerOrEventListenerObject
-
Optional options: AddEventListenerOptions | boolean
Returns this
Protected onAddViewObserver
Protected onInsertChildView
- onInsertChildView(childView: View, targetView: View | null | undefined): void
-
Parameters
-
childView: View
-
targetView: View | null | undefined
Returns void
Protected onRemoveChildView
- onRemoveChildView(childView: View): void
Protected onRemoveViewObserver
Protected onSetKey
- onSetKey(key: string | null): void
Protected onSetParentView
- onSetParentView(parentView: View | null): void
Protected onSetViewController
Abstract prependChildView
- prependChildView(childView: View): void
Abstract removeChildView
- removeChildView(childView: View): void
Abstract removeViewObserver
Abstract setChildView
- setChildView(key: string, newChildView: View | null): View | null
-
Parameters
-
key: string
-
newChildView: View | null
Returns View
|
null
Abstract setParentView
- setParentView(parentView: View | null): void
Abstract setViewController
Protected willAddViewObserver
Protected willInsertChildView
- willInsertChildView(childView: View, targetView: View | null | undefined): void
-
Parameters
-
childView: View
-
targetView: View | null | undefined
Returns void
Protected willObserve
- willObserve(callback: function): void
Protected willRemoveChildView
- willRemoveChildView(childView: View): void
Protected willRemoveViewObserver
Protected willSetKey
- willSetKey(key: string | null): void
Protected willSetParentView
- willSetParentView(parentView: View | null): void
Protected willSetViewController
Static create
-
Parameters
-
Parameters
-
Type parameters
-
K: keyof HTMLElementTagNameMap
Parameters
-
Parameters
-
Type parameters
Parameters
-
-
Optional key: undefined | string
Returns V
Static fromNode
-
Parameters
-
Parameters
-
Parameters
-
Parameters
-
Parameters
-
Parameters
Returns the transformation from viewport coordinates to view coordinates.