Interface ComponentFastener<C, S, U>
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
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
Optional Readonly type
type: unknown
Methods
attachComponent
- attachComponent(newComponent: S): void
-
Parameters
Returns void
createComponent
- createComponent(): null | S | U
-
Returns null | S | U
detachComponent
- detachComponent(oldComponent: S): void
-
Parameters
Returns void
didMount
-
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
-
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
Returns null | S
getComponent
-
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
-
-
childComponent: S
-
targetComponent: null | Component
-
key: undefined | string
Returns void
isMounted
-
Returns boolean
mount
-
Returns void
onMount
-
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
-
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
Returns void
unmount
-
Returns void
willMount
-
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
-
Returns void