Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ComponentFastener<C, S, U>

Type parameters

Hierarchy

  • ComponentFastener

Callable

  • ComponentFastener(): null | S
  • ComponentFastener(component: null | S | U, targetComponent?: null | Component): C
  • Returns null | S

  • Parameters

    • component: null | S | U
    • Optional targetComponent: null | Component

    Returns C

Index

Properties

Optional child

child: boolean

Readonly component

component: null | S

fastenerFlags

fastenerFlags: number

Readonly key

key: undefined | string

Readonly name

name: string

Optional observe

observe: boolean

Readonly owner

owner: C

Readonly parentComponent

parentComponent: null | Component

Optional Readonly type

type: unknown

Methods

attachComponent

  • attachComponent(newComponent: S): void
  • Parameters

    • newComponent: S

    Returns void

createComponent

  • createComponent(): null | S | U
  • Returns null | S | U

detachComponent

  • detachComponent(oldComponent: S): void
  • Parameters

    • oldComponent: S

    Returns void

didMount

  • didMount(): void
  • Returns void

didSetComponent

  • didSetComponent(newComponent: null | S, oldComponent: null | S, targetComponent: null | Component): void
  • Parameters

    • newComponent: null | S
    • oldComponent: null | S
    • targetComponent: null | Component

    Returns void

didUnmount

  • didUnmount(): void
  • Returns void

doSetComponent

  • doSetComponent(newComponent: null | S, targetComponent: null | Component): void
  • Parameters

    • newComponent: null | S
    • targetComponent: null | Component

    Returns void

fromAny

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

    • value: S | U

    Returns null | S

getComponent

  • getComponent(): S
  • Returns S

injectComponent

  • injectComponent(parentComponent?: null | Component, childComponent?: null | S | U, targetComponent?: null | Component, key?: null | string): null | S
  • Parameters

    • Optional parentComponent: null | Component
    • Optional childComponent: null | S | U
    • Optional targetComponent: null | Component
    • Optional key: null | string

    Returns null | S

insertComponent

  • insertComponent(parentComponent: Component, childComponent: S, targetComponent: null | Component, key: undefined | string): void
  • Parameters

    • parentComponent: Component
    • childComponent: S
    • targetComponent: null | Component
    • key: undefined | string

    Returns void

isMounted

  • isMounted(): boolean
  • Returns boolean

mount

  • mount(): void
  • Returns void

onMount

  • onMount(): void
  • Returns void

onSetComponent

  • onSetComponent(newComponent: null | S, oldComponent: null | S, targetComponent: null | Component): void
  • Parameters

    • newComponent: null | S
    • oldComponent: null | S
    • targetComponent: null | Component

    Returns void

onUnmount

  • onUnmount(): void
  • Returns void

removeComponent

  • removeComponent(): null | S
  • Returns null | S

setComponent

  • setComponent(newComponent: null | S | U, targetComponent?: null | Component): null | S
  • Parameters

    • newComponent: null | S | U
    • Optional targetComponent: null | Component

    Returns null | S

setFastenerFlags

  • setFastenerFlags(fastenerFlags: number): void
  • Parameters

    • fastenerFlags: number

    Returns void

unmount

  • unmount(): void
  • Returns void

willMount

  • willMount(): void
  • Returns void

willSetComponent

  • willSetComponent(newComponent: null | S, oldComponent: null | S, targetComponent: null | Component): void
  • Parameters

    • newComponent: null | S
    • oldComponent: null | S
    • targetComponent: null | Component

    Returns void

willUnmount

  • willUnmount(): void
  • Returns void

Generated using TypeDoc