Search
Preparing search index...
The search index is not available
Swim Toolkit
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Swim Toolkit
@swim/view
ViewFastener
Interface ViewFastener<V, S, U>
Type parameters
V
:
View
S
:
View
U =
never
Hierarchy
ConstraintScope
ViewFastener
Callable
View
Fastener
(
)
:
null
|
S
View
Fastener
(
view
:
null
|
S
|
U
, targetView
?:
null
|
View
)
:
V
Returns
null
|
S
Parameters
view:
null
|
S
|
U
Optional
targetView:
null
|
View
Returns
V
Index
Properties
child
constraint
Variables
constraints
fastener
Flags
key
name
observe
owner
parent
View
type
view
Methods
activate
Constraint
activate
Constraint
Variable
activate
Layout
add
Constraint
add
Constraint
Variable
attach
View
constraint
constraint
Variable
create
View
deactivate
Constraint
deactivate
Constraint
Variable
deactivate
Layout
detach
View
did
Mount
did
Set
View
did
Unmount
do
Set
View
from
Any
get
View
has
Constraint
has
Constraint
Variable
inject
View
insert
View
is
Mounted
mount
on
Mount
on
Set
View
on
Unmount
remove
Constraint
remove
Constraint
Variable
remove
View
set
Constraint
Variable
set
Fastener
Flags
set
View
unmount
will
Mount
will
Set
View
will
Unmount
Properties
Optional
child
child
:
boolean
Readonly
constraint
Variables
constraint
Variables
:
readonly
ConstraintVariable
[]
Readonly
constraints
constraints
:
readonly
Constraint
[]
fastener
Flags
fastener
Flags
:
number
Readonly
key
key
:
undefined
|
string
Readonly
name
name
:
string
Optional
observe
observe
:
boolean
Readonly
owner
owner
:
V
Readonly
parent
View
parent
View
:
null
|
View
Optional
Readonly
type
type
:
ViewFactory
<
S
,
never
>
Readonly
view
view
:
null
|
S
Methods
activate
Constraint
activate
Constraint
(
constraint
:
Constraint
)
:
void
Parameters
constraint:
Constraint
Returns
void
activate
Constraint
Variable
activate
Constraint
Variable
(
constraintVariable
:
ConstraintVariable
)
:
void
Parameters
constraintVariable:
ConstraintVariable
Returns
void
activate
Layout
activate
Layout
(
)
:
void
Returns
void
add
Constraint
add
Constraint
(
constraint
:
Constraint
)
:
void
Parameters
constraint:
Constraint
Returns
void
add
Constraint
Variable
add
Constraint
Variable
(
variable
:
ConstraintVariable
)
:
void
Parameters
variable:
ConstraintVariable
Returns
void
attach
View
attach
View
(
newView
:
S
)
:
void
Parameters
newView:
S
Returns
void
constraint
constraint
(
lhs
:
AnyConstraintExpression
, relation
:
ConstraintRelation
, rhs
?:
AnyConstraintExpression
, strength
?:
AnyConstraintStrength
)
:
Constraint
Parameters
lhs:
AnyConstraintExpression
relation:
ConstraintRelation
Optional
rhs:
AnyConstraintExpression
Optional
strength:
AnyConstraintStrength
Returns
Constraint
constraint
Variable
constraint
Variable
(
name
:
string
, value
?:
number
, strength
?:
AnyConstraintStrength
)
:
ConstraintBinding
Parameters
name:
string
Optional
value:
number
Optional
strength:
AnyConstraintStrength
Returns
ConstraintBinding
create
View
create
View
(
)
:
null
|
S
|
U
Returns
null
|
S
|
U
deactivate
Constraint
deactivate
Constraint
(
constraint
:
Constraint
)
:
void
Parameters
constraint:
Constraint
Returns
void
deactivate
Constraint
Variable
deactivate
Constraint
Variable
(
constraintVariable
:
ConstraintVariable
)
:
void
Parameters
constraintVariable:
ConstraintVariable
Returns
void
deactivate
Layout
deactivate
Layout
(
)
:
void
Returns
void
detach
View
detach
View
(
oldView
:
S
)
:
void
Parameters
oldView:
S
Returns
void
did
Mount
did
Mount
(
)
:
void
Returns
void
did
Set
View
did
Set
View
(
newView
:
null
|
S
, oldView
:
null
|
S
, targetView
:
null
|
View
)
:
void
Parameters
newView:
null
|
S
oldView:
null
|
S
targetView:
null
|
View
Returns
void
did
Unmount
did
Unmount
(
)
:
void
Returns
void
do
Set
View
do
Set
View
(
newView
:
null
|
S
, targetView
:
null
|
View
)
:
void
Parameters
newView:
null
|
S
targetView:
null
|
View
Returns
void
from
Any
from
Any
(
value
:
S
|
U
)
:
null
|
S
Parameters
value:
S
|
U
Returns
null
|
S
get
View
get
View
(
)
:
S
Returns
S
has
Constraint
has
Constraint
(
constraint
:
Constraint
)
:
boolean
Parameters
constraint:
Constraint
Returns
boolean
has
Constraint
Variable
has
Constraint
Variable
(
variable
:
ConstraintVariable
)
:
boolean
Parameters
variable:
ConstraintVariable
Returns
boolean
inject
View
inject
View
(
parentView
?:
null
|
View
, childView
?:
null
|
S
|
U
, targetView
?:
null
|
View
, key
?:
null
|
string
)
:
null
|
S
Parameters
Optional
parentView:
null
|
View
Optional
childView:
null
|
S
|
U
Optional
targetView:
null
|
View
Optional
key:
null
|
string
Returns
null
|
S
insert
View
insert
View
(
parentView
:
View
, childView
:
S
, targetView
:
null
|
View
, key
:
undefined
|
string
)
:
void
Parameters
parentView:
View
childView:
S
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
View
on
Set
View
(
newView
:
null
|
S
, oldView
:
null
|
S
, targetView
:
null
|
View
)
:
void
Parameters
newView:
null
|
S
oldView:
null
|
S
targetView:
null
|
View
Returns
void
on
Unmount
on
Unmount
(
)
:
void
Returns
void
remove
Constraint
remove
Constraint
(
constraint
:
Constraint
)
:
void
Parameters
constraint:
Constraint
Returns
void
remove
Constraint
Variable
remove
Constraint
Variable
(
variable
:
ConstraintVariable
)
:
void
Parameters
variable:
ConstraintVariable
Returns
void
remove
View
remove
View
(
)
:
null
|
S
Returns
null
|
S
set
Constraint
Variable
set
Constraint
Variable
(
constraintVariable
:
ConstraintVariable
, state
:
number
)
:
void
Parameters
constraintVariable:
ConstraintVariable
state:
number
Returns
void
set
Fastener
Flags
set
Fastener
Flags
(
fastenerFlags
:
number
)
:
void
Parameters
fastenerFlags:
number
Returns
void
set
View
set
View
(
newView
:
null
|
S
|
U
, targetView
?:
null
|
View
)
:
null
|
S
Parameters
newView:
null
|
S
|
U
Optional
targetView:
null
|
View
Returns
null
|
S
unmount
unmount
(
)
:
void
Returns
void
will
Mount
will
Mount
(
)
:
void
Returns
void
will
Set
View
will
Set
View
(
newView
:
null
|
S
, oldView
:
null
|
S
, targetView
:
null
|
View
)
:
void
Parameters
newView:
null
|
S
oldView:
null
|
S
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
View
Fastener
child
constraint
Variables
constraints
fastener
Flags
key
name
observe
owner
parent
View
type
view
activate
Constraint
activate
Constraint
Variable
activate
Layout
add
Constraint
add
Constraint
Variable
attach
View
constraint
constraint
Variable
create
View
deactivate
Constraint
deactivate
Constraint
Variable
deactivate
Layout
detach
View
did
Mount
did
Set
View
did
Unmount
do
Set
View
from
Any
get
View
has
Constraint
has
Constraint
Variable
inject
View
insert
View
is
Mounted
mount
on
Mount
on
Set
View
on
Unmount
remove
Constraint
remove
Constraint
Variable
remove
View
set
Constraint
Variable
set
Fastener
Flags
set
View
unmount
will
Mount
will
Set
View
will
Unmount
Generated using
TypeDoc