Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ElementView

Hierarchy

Implements

Index

Constructors

Accessors

Methods

Constructors

constructor

  • new ElementView(node: Element, key?: string | null): ElementView

Accessors

appView

childViews

  • get childViews(): ReadonlyArray<View>

classList

  • get classList(): DOMTokenList

clientBounds

  • get clientBounds(): BoxR2

clientTransform

dirty

  • get dirty(): boolean

node

pageBounds

  • get pageBounds(): BoxR2

pageTransform

parentTransform

parentView

  • get parentView(): View | null

popoverBounds

  • get popoverBounds(): BoxR2

viewController

viewObservers

Methods

addClass

  • addClass(...classNames: string[]): this

addViewObserver

animate

  • animate(force?: boolean): void

appendChild

  • appendChild(child: View | Node): void

appendChildNode

  • appendChildNode(childNode: Node): void

appendChildView

  • appendChildView(childView: View): void

cascadeAnimate

  • cascadeAnimate(frame: number): void

cascadeLayout

  • cascadeLayout(): void

cascadeMount

  • cascadeMount(): void

cascadeResize

  • cascadeResize(): void

cascadeScroll

  • cascadeScroll(): void

cascadeUnmount

  • cascadeUnmount(): void

className

  • className(): string | null
  • className(value: string | null): this

Protected didAddViewObserver

Protected didAnimate

  • didAnimate(frame: number): void

Protected didInsertChildNode

  • didInsertChildNode(childNode: Node, targetNode: Node | null): void

Protected didInsertChildView

  • didInsertChildView(childView: View, targetView: View | null | undefined): void

Protected didLayout

  • didLayout(): void

Protected didMount

  • didMount(): void

Protected didObserve

  • didObserve(callback: function): void

Protected didRemoveChildNode

  • didRemoveChildNode(childNode: Node): void

Protected didRemoveChildView

  • didRemoveChildView(childView: View): void

Protected didRemoveViewObserver

Protected didResize

  • didResize(): void

Protected didScroll

  • didScroll(): void

Protected didSetAttribute

  • didSetAttribute(name: string, value: unknown): void

Protected didSetDirty

  • didSetDirty(dirty: boolean): void

Protected didSetKey

  • didSetKey(key: string | null): void

Protected didSetParentView

  • didSetParentView(parentView: View | null): void

Protected didSetStyle

  • didSetStyle(name: string, value: unknown, priority: string | undefined): void

Protected didSetViewController

Protected didUnmount

  • didUnmount(): void

dispatchEvent

  • dispatchEvent(event: Event): boolean

getAttribute

  • getAttribute(name: string): string | null

getChildView

  • getChildView(key: string): View | null

hasClass

  • hasClass(className: string): boolean

id

  • id(): string | null
  • id(value: string | null): this

Protected initNode

insertChild

  • insertChild(child: View | Node, target: View | Node | null): void

insertChildNode

  • insertChildNode(childNode: Node, targetNode: Node | null): void

insertChildView

  • insertChildView(childView: View, targetView: View | null): void

isMounted

  • isMounted(): boolean

isVisible

  • isVisible(): boolean

key

  • key(): string | null
  • key(key: string | null): this

off

  • off<K>(type: K, listener: function, options?: EventListenerOptions | boolean): this
  • off(type: string, listener: EventListenerOrEventListenerObject, options?: EventListenerOptions | boolean): this

on

  • on<K>(type: K, listener: function, options?: AddEventListenerOptions | boolean): this
  • on(type: string, listener: EventListenerOrEventListenerObject, options?: AddEventListenerOptions | boolean): this

Protected onAddViewObserver

Protected onAnimate

  • onAnimate(frame: number): void

Protected onAnimationFrame

  • onAnimationFrame(timestamp: number): void

Protected onInsertChildNode

  • onInsertChildNode(childNode: Node, targetNode: Node | null): void

Protected onInsertChildView

  • onInsertChildView(childView: View, targetView: View | null | undefined): void

Protected onLayout

  • onLayout(): void

Protected onMount

  • onMount(): void

Protected onRemoveChildNode

  • onRemoveChildNode(childNode: Node): void

Protected onRemoveChildView

  • onRemoveChildView(childView: View): void

Protected onRemoveViewObserver

Protected onResize

  • onResize(): void

Protected onScroll

  • onScroll(): void

Protected onSetAttribute

  • onSetAttribute(name: string, value: unknown): void

Protected onSetKey

  • onSetKey(key: string | null): void

Protected onSetParentView

  • onSetParentView(parentView: View | null): void

Protected onSetStyle

  • onSetStyle(name: string, value: unknown, priority: string | undefined): void

Protected onSetViewController

Protected onUnmount

  • onUnmount(): void

prependChild

  • prependChild(child: View | Node): void

prependChildNode

  • prependChildNode(childNode: Node): void

prependChildView

  • prependChildView(childView: View): void

remove

  • remove(): void

removeAll

  • removeAll(): void

removeChild

  • removeChild(child: View | Node): void

removeChildNode

  • removeChildNode(childNode: Node): void

removeChildView

  • removeChildView(childView: View): void

removeClass

  • removeClass(...classNames: string[]): this

removeViewObserver

setAttribute

  • setAttribute(name: string, value: unknown): this

setChildView

  • setChildView(key: string, newChildView: View | null): View | null

setDirty

  • setDirty(dirty: boolean): void

setParentView

  • setParentView(parentView: View | null): void

setStyle

  • setStyle(name: string, value: unknown, priority?: undefined | string): this

setViewController

text

  • text(): string | null
  • text(value: string | null): this

toggleClass

  • toggleClass(className: string, state?: undefined | false | true): this

Protected willAddViewObserver

Protected willAnimate

  • willAnimate(frame: number): void

Protected willInsertChildNode

  • willInsertChildNode(childNode: Node, targetNode: Node | null): void

Protected willInsertChildView

  • willInsertChildView(childView: View, targetView: View | null | undefined): void

Protected willLayout

  • willLayout(): void

Protected willMount

  • willMount(): void

Protected willObserve

  • willObserve(callback: function): void

Protected willRemoveChildNode

  • willRemoveChildNode(childNode: Node): void

Protected willRemoveChildView

  • willRemoveChildView(childView: View): void

Protected willRemoveViewObserver

Protected willResize

  • willResize(): void

Protected willScroll

  • willScroll(): void

Protected willSetAttribute

  • willSetAttribute(name: string, value: unknown): void

Protected willSetKey

  • willSetKey(key: string | null): void

Protected willSetParentView

  • willSetParentView(parentView: View | null): void

Protected willSetStyle

  • willSetStyle(name: string, value: unknown, priority: string | undefined): void

Protected willSetViewController

Protected willUnmount

  • willUnmount(): void

Static create

Static fromNode