Search
Preparing search index...
The search index is not available
Swim Toolkit
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Swim Toolkit
@swim/component
ComponentViewTrait
Interface ComponentViewTrait<C, V, R, VU, RU>
Type parameters
C
:
Component
V
:
View
R
:
Trait
VU =
never
RU =
never
Hierarchy
ComponentViewTrait
Index
Properties
fastener
Flags
name
observe
Trait
observe
View
owner
trait
trait
Key
trait
Type
view
view
Key
view
Type
Methods
attach
Trait
attach
View
create
Trait
create
View
detach
Trait
detach
View
did
Mount
did
Set
Trait
did
Set
View
did
Unmount
from
Any
Trait
from
Any
View
get
Trait
get
View
inject
Trait
inject
View
insert
Trait
insert
View
is
Mounted
mount
on
Mount
on
Set
Trait
on
Set
View
on
Unmount
remove
Trait
remove
View
set
Fastener
Flags
set
Trait
set
View
unmount
will
Mount
will
Set
Trait
will
Set
View
will
Unmount
Properties
fastener
Flags
fastener
Flags
:
number
Readonly
name
name
:
string
Optional
observe
Trait
observe
Trait
:
boolean
Optional
observe
View
observe
View
:
boolean
Readonly
owner
owner
:
C
Readonly
trait
trait
:
null
|
R
Readonly
trait
Key
trait
Key
:
undefined
|
string
Optional
Readonly
trait
Type
trait
Type
:
unknown
Readonly
view
view
:
null
|
V
Readonly
view
Key
view
Key
:
undefined
|
string
Optional
Readonly
view
Type
view
Type
:
ViewFactory
<
V
,
never
>
Methods
attach
Trait
attach
Trait
(
newTrait
:
R
)
:
void
Parameters
newTrait:
R
Returns
void
attach
View
attach
View
(
newView
:
V
)
:
void
Parameters
newView:
V
Returns
void
create
Trait
create
Trait
(
)
:
null
|
R
|
RU
Returns
null
|
R
|
RU
create
View
create
View
(
)
:
null
|
V
|
VU
Returns
null
|
V
|
VU
detach
Trait
detach
Trait
(
oldTrait
:
R
)
:
void
Parameters
oldTrait:
R
Returns
void
detach
View
detach
View
(
oldView
:
V
)
:
void
Parameters
oldView:
V
Returns
void
did
Mount
did
Mount
(
)
:
void
Returns
void
did
Set
Trait
did
Set
Trait
(
newTrait
:
null
|
R
, oldTrait
:
null
|
R
, targetTrait
:
null
|
Trait
)
:
void
Parameters
newTrait:
null
|
R
oldTrait:
null
|
R
targetTrait:
null
|
Trait
Returns
void
did
Set
View
did
Set
View
(
newView
:
null
|
V
, oldView
:
null
|
V
, targetView
:
null
|
View
)
:
void
Parameters
newView:
null
|
V
oldView:
null
|
V
targetView:
null
|
View
Returns
void
did
Unmount
did
Unmount
(
)
:
void
Returns
void
from
Any
Trait
from
Any
Trait
(
value
:
R
|
RU
)
:
null
|
R
Parameters
value:
R
|
RU
Returns
null
|
R
from
Any
View
from
Any
View
(
value
:
V
|
VU
)
:
null
|
V
Parameters
value:
V
|
VU
Returns
null
|
V
get
Trait
get
Trait
(
)
:
R
Returns
R
get
View
get
View
(
)
:
V
Returns
V
inject
Trait
inject
Trait
(
model
:
Model
, trait
?:
null
|
R
|
RU
, targetTrait
?:
null
|
Trait
, key
?:
null
|
string
)
:
null
|
R
Parameters
model:
Model
Optional
trait:
null
|
R
|
RU
Optional
targetTrait:
null
|
Trait
Optional
key:
null
|
string
Returns
null
|
R
inject
View
inject
View
(
parentView
:
View
, childView
?:
null
|
V
|
VU
, targetView
?:
null
|
View
, key
?:
null
|
string
)
:
null
|
V
Parameters
parentView:
View
Optional
childView:
null
|
V
|
VU
Optional
targetView:
null
|
View
Optional
key:
null
|
string
Returns
null
|
V
insert
Trait
insert
Trait
(
model
:
Model
, trait
:
R
, targetTrait
:
null
|
Trait
, key
:
undefined
|
string
)
:
void
Parameters
model:
Model
trait:
R
targetTrait:
null
|
Trait
key:
undefined
|
string
Returns
void
insert
View
insert
View
(
parentView
:
View
, childView
:
V
, targetView
:
null
|
View
, key
:
undefined
|
string
)
:
void
Parameters
parentView:
View
childView:
V
targetView:
null
|
View
key:
undefined
|
string
Returns
void
is
Mounted
is
Mounted
(
)
:
boolean
Returns
boolean
mount
mount
(
)
:
void
Returns
void
on
Mount
on
Mount
(
)
:
void
Returns
void
on
Set
Trait
on
Set
Trait
(
newTrait
:
null
|
R
, oldTrait
:
null
|
R
, targetTrait
:
null
|
Trait
)
:
void
Parameters
newTrait:
null
|
R
oldTrait:
null
|
R
targetTrait:
null
|
Trait
Returns
void
on
Set
View
on
Set
View
(
newView
:
null
|
V
, oldView
:
null
|
V
, targetView
:
null
|
View
)
:
void
Parameters
newView:
null
|
V
oldView:
null
|
V
targetView:
null
|
View
Returns
void
on
Unmount
on
Unmount
(
)
:
void
Returns
void
remove
Trait
remove
Trait
(
)
:
null
|
R
Returns
null
|
R
remove
View
remove
View
(
)
:
null
|
V
Returns
null
|
V
set
Fastener
Flags
set
Fastener
Flags
(
fastenerFlags
:
number
)
:
void
Parameters
fastenerFlags:
number
Returns
void
set
Trait
set
Trait
(
newTrait
:
null
|
R
|
RU
, targetTrait
?:
null
|
Trait
)
:
null
|
R
Parameters
newTrait:
null
|
R
|
RU
Optional
targetTrait:
null
|
Trait
Returns
null
|
R
set
View
set
View
(
newView
:
null
|
V
|
VU
, targetView
?:
null
|
View
)
:
null
|
V
Parameters
newView:
null
|
V
|
VU
Optional
targetView:
null
|
View
Returns
null
|
V
unmount
unmount
(
)
:
void
Returns
void
will
Mount
will
Mount
(
)
:
void
Returns
void
will
Set
Trait
will
Set
Trait
(
newTrait
:
null
|
R
, oldTrait
:
null
|
R
, targetTrait
:
null
|
Trait
)
:
void
Parameters
newTrait:
null
|
R
oldTrait:
null
|
R
targetTrait:
null
|
Trait
Returns
void
will
Set
View
will
Set
View
(
newView
:
null
|
V
, oldView
:
null
|
V
, targetView
:
null
|
View
)
:
void
Parameters
newView:
null
|
V
oldView:
null
|
V
targetView:
null
|
View
Returns
void
will
Unmount
will
Unmount
(
)
:
void
Returns
void
Modules
@swim/system
@swim/toolkit
@swim/ui
@swim/model
@swim/style
@swim/theme
@swim/view
@swim/dom
@swim/graphics
@swim/component
@swim/ux
@swim/vis
@swim/maps
Component
View
Trait
fastener
Flags
name
observe
Trait
observe
View
owner
trait
trait
Key
trait
Type
view
view
Key
view
Type
attach
Trait
attach
View
create
Trait
create
View
detach
Trait
detach
View
did
Mount
did
Set
Trait
did
Set
View
did
Unmount
from
Any
Trait
from
Any
View
get
Trait
get
View
inject
Trait
inject
View
insert
Trait
insert
View
is
Mounted
mount
on
Mount
on
Set
Trait
on
Set
View
on
Unmount
remove
Trait
remove
View
set
Fastener
Flags
set
Trait
set
View
unmount
will
Mount
will
Set
Trait
will
Set
View
will
Unmount
Generated using
TypeDoc