Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ComponentViewTrait<C, V, R, VU, RU>

Type parameters

Hierarchy

  • ComponentViewTrait

Index

Properties

fastenerFlags

fastenerFlags: number

Readonly name

name: string

Optional observeTrait

observeTrait: boolean

Optional observeView

observeView: boolean

Readonly owner

owner: C

Readonly trait

trait: null | R

Readonly traitKey

traitKey: undefined | string

Optional Readonly traitType

traitType: unknown

Readonly view

view: null | V

Readonly viewKey

viewKey: undefined | string

Optional Readonly viewType

viewType: ViewFactory<V, never>

Methods

attachTrait

  • attachTrait(newTrait: R): void
  • Parameters

    • newTrait: R

    Returns void

attachView

  • attachView(newView: V): void
  • Parameters

    • newView: V

    Returns void

createTrait

  • createTrait(): null | R | RU
  • Returns null | R | RU

createView

  • createView(): null | V | VU
  • Returns null | V | VU

detachTrait

  • detachTrait(oldTrait: R): void
  • Parameters

    • oldTrait: R

    Returns void

detachView

  • detachView(oldView: V): void
  • Parameters

    • oldView: V

    Returns void

didMount

  • didMount(): void
  • Returns void

didSetTrait

  • didSetTrait(newTrait: null | R, oldTrait: null | R, targetTrait: null | Trait): void
  • Parameters

    • newTrait: null | R
    • oldTrait: null | R
    • targetTrait: null | Trait

    Returns void

didSetView

  • didSetView(newView: null | V, oldView: null | V, targetView: null | View): void
  • Parameters

    • newView: null | V
    • oldView: null | V
    • targetView: null | View

    Returns void

didUnmount

  • didUnmount(): void
  • Returns void

fromAnyTrait

  • fromAnyTrait(value: R | RU): null | R
  • Parameters

    • value: R | RU

    Returns null | R

fromAnyView

  • fromAnyView(value: V | VU): null | V
  • Parameters

    • value: V | VU

    Returns null | V

getTrait

  • getTrait(): R
  • Returns R

getView

  • getView(): V
  • Returns V

injectTrait

  • injectTrait(model: Model, trait?: null | R | RU, targetTrait?: null | Trait, key?: null | string): null | R
  • Parameters

    • model: Model
    • Optional trait: null | R | RU
    • Optional targetTrait: null | Trait
    • Optional key: null | string

    Returns null | R

injectView

  • injectView(parentView: View, childView?: null | V | VU, targetView?: null | View, key?: null | string): null | V
  • Parameters

    • parentView: View
    • Optional childView: null | V | VU
    • Optional targetView: null | View
    • Optional key: null | string

    Returns null | V

insertTrait

  • insertTrait(model: Model, trait: R, targetTrait: null | Trait, key: undefined | string): void
  • Parameters

    • model: Model
    • trait: R
    • targetTrait: null | Trait
    • key: undefined | string

    Returns void

insertView

  • insertView(parentView: View, childView: V, targetView: null | View, key: undefined | string): void
  • Parameters

    • parentView: View
    • childView: V
    • targetView: null | View
    • key: undefined | string

    Returns void

isMounted

  • isMounted(): boolean
  • Returns boolean

mount

  • mount(): void
  • Returns void

onMount

  • onMount(): void
  • Returns void

onSetTrait

  • onSetTrait(newTrait: null | R, oldTrait: null | R, targetTrait: null | Trait): void
  • Parameters

    • newTrait: null | R
    • oldTrait: null | R
    • targetTrait: null | Trait

    Returns void

onSetView

  • onSetView(newView: null | V, oldView: null | V, targetView: null | View): void
  • Parameters

    • newView: null | V
    • oldView: null | V
    • targetView: null | View

    Returns void

onUnmount

  • onUnmount(): void
  • Returns void

removeTrait

  • removeTrait(): null | R
  • Returns null | R

removeView

  • removeView(): null | V
  • Returns null | V

setFastenerFlags

  • setFastenerFlags(fastenerFlags: number): void
  • Parameters

    • fastenerFlags: number

    Returns void

setTrait

  • setTrait(newTrait: null | R | RU, targetTrait?: null | Trait): null | R
  • Parameters

    • newTrait: null | R | RU
    • Optional targetTrait: null | Trait

    Returns null | R

setView

  • setView(newView: null | V | VU, targetView?: null | View): null | V
  • Parameters

    • newView: null | V | VU
    • Optional targetView: null | View

    Returns null | V

unmount

  • unmount(): void
  • Returns void

willMount

  • willMount(): void
  • Returns void

willSetTrait

  • willSetTrait(newTrait: null | R, oldTrait: null | R, targetTrait: null | Trait): void
  • Parameters

    • newTrait: null | R
    • oldTrait: null | R
    • targetTrait: null | Trait

    Returns void

willSetView

  • willSetView(newView: null | V, oldView: null | V, targetView: null | View): void
  • Parameters

    • newView: null | V
    • oldView: null | V
    • targetView: null | View

    Returns void

willUnmount

  • willUnmount(): void
  • Returns void

Generated using TypeDoc