Interface ComponentModel<C, M, U>
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
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
Returns void
createModel
- createModel(): null | M | U
-
Returns null | M | U
detachModel
- detachModel(oldModel: M): void
-
Parameters
Returns void
didMount
-
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
-
Returns void
fromAny
- fromAny(value: M | U): null | M
-
Parameters
Returns null | M
getModel
-
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
-
Returns boolean
mount
-
Returns void
onMount
-
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
-
Returns void
removeModel
-
Returns null | M
setFastenerFlags
- setFastenerFlags(fastenerFlags: number): void
-
Parameters
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
-
Returns void
willMount
-
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
-
Returns void