Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ComponentViewTraitInit<V, R, VU, RU>

Type parameters

Hierarchy

  • ComponentViewTraitInit

Index

Properties

Optional extends

Optional observeTrait

observeTrait: boolean

Optional observeView

observeView: boolean

Optional traitKey

traitKey: string | boolean

Optional traitType

traitType: unknown

Optional viewKey

viewKey: string | boolean

Optional viewType

viewType: ViewFactory<V, VU>

Methods

Optional createTrait

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

Optional createView

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

Optional didSetTrait

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

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

    Returns void

Optional didSetView

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

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

    Returns void

Optional fromAny

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

    • value: V | VU

    Returns null | V

Optional 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

Optional 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

Optional onSetTrait

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

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

    Returns void

Optional onSetView

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

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

    Returns void

Optional willSetTrait

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

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

    Returns void

Optional willSetView

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

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

    Returns void

Generated using TypeDoc