Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ComponentModel<C, M, U>

Type parameters

Hierarchy

  • ComponentModel

Callable

  • ComponentModel(): null | M
  • ComponentModel(model: null | M | U, targetModel?: null | Model): C
  • Returns null | M

  • Parameters

    • model: null | M | U
    • Optional targetModel: null | Model

    Returns C

Index

Properties

fastenerFlags

fastenerFlags: number

Readonly key

key: undefined | string

Readonly model

model: null | M

Readonly name

name: string

Optional observe

observe: boolean

Readonly owner

owner: C

Optional Readonly type

type: unknown

Methods

attachModel

  • attachModel(newModel: M): void
  • Parameters

    • newModel: M

    Returns void

createModel

  • createModel(): null | M | U
  • Returns null | M | U

detachModel

  • detachModel(oldModel: M): void
  • Parameters

    • oldModel: M

    Returns void

didMount

  • didMount(): void
  • Returns void

didSetModel

  • didSetModel(newModel: null | M, oldModel: null | M, targetModel: null | Model): void
  • Parameters

    • newModel: null | M
    • oldModel: null | M
    • targetModel: null | Model

    Returns void

didUnmount

  • didUnmount(): void
  • Returns void

fromAny

  • fromAny(value: M | U): null | M
  • Parameters

    • value: M | U

    Returns null | M

getModel

  • getModel(): M
  • Returns M

injectModel

  • injectModel(parentModel: Model, childModel?: null | M | U, targetModel?: null | Model, key?: null | string): null | M
  • Parameters

    • parentModel: Model
    • Optional childModel: null | M | U
    • Optional targetModel: null | Model
    • Optional key: null | string

    Returns null | M

insertModel

  • insertModel(parentModel: Model, childModel: M, targetMoel: null | Model, key: undefined | string): void
  • Parameters

    • parentModel: Model
    • childModel: M
    • targetMoel: null | Model
    • key: undefined | string

    Returns void

isMounted

  • isMounted(): boolean
  • Returns boolean

mount

  • mount(): void
  • Returns void

onMount

  • onMount(): void
  • Returns void

onSetModel

  • onSetModel(newModel: null | M, oldModel: null | M, targetModel: null | Model): void
  • Parameters

    • newModel: null | M
    • oldModel: null | M
    • targetModel: null | Model

    Returns void

onUnmount

  • onUnmount(): void
  • Returns void

removeModel

  • removeModel(): null | M
  • Returns null | M

setFastenerFlags

  • setFastenerFlags(fastenerFlags: number): void
  • Parameters

    • fastenerFlags: number

    Returns void

setModel

  • setModel(newModel: null | M | U, targetModel?: null | Model): null | M
  • Parameters

    • newModel: null | M | U
    • Optional targetModel: null | Model

    Returns null | M

unmount

  • unmount(): void
  • Returns void

willMount

  • willMount(): void
  • Returns void

willSetModel

  • willSetModel(newModel: null | M, oldModel: null | M, targetModel: null | Model): void
  • Parameters

    • newModel: null | M
    • oldModel: null | M
    • targetModel: null | Model

    Returns void

willUnmount

  • willUnmount(): void
  • Returns void

Generated using TypeDoc