Search
Preparing search index...
The search index is not available
Swim Toolkit
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Swim Toolkit
@swim/model
ModelRelationInit
Interface ModelRelationInit<M>
Type parameters
M
:
Model
=
Model
Hierarchy
FastenerInit
ModelRelationInit
ModelRefInit
ModelSetInit
Index
Properties
affinity
binds
extends
inherits
lazy
name
observes
parent
Model
static
type
Methods
create
Model
deinit
Model
detect
Model
did
Attach
Model
did
Bind
Super
Fastener
did
Detach
Model
did
Inherit
did
Mount
did
Set
Affinity
did
Set
Inherits
did
Unbind
Super
Fastener
did
Uninherit
did
Unmount
from
Any
init
init
Model
insert
Child
will
Attach
Model
will
Bind
Super
Fastener
will
Detach
Model
will
Inherit
will
Mount
will
Set
Affinity
will
Set
Inherits
will
Unbind
Super
Fastener
will
Uninherit
will
Unmount
Properties
Optional
affinity
affinity
:
number
Optional
binds
binds
:
boolean
Optional
extends
extends
:
null
|
string
|
boolean
|
{
prototype
:
ModelRelation
<
any
,
any
>
}
Optional
inherits
inherits
:
string
|
boolean
Optional
lazy
lazy
:
boolean
Optional
name
name
:
string
Optional
observes
observes
:
boolean
Optional
parent
Model
parent
Model
:
null
|
Model
Optional
static
static
:
string
|
boolean
Optional
type
type
:
ModelFactory
<
M
,
AnyModel
<
M
>
>
Methods
Optional
create
Model
create
Model
(
)
:
M
Returns
M
Optional
deinit
Model
deinit
Model
(
model
:
M
)
:
void
Parameters
model:
M
Returns
void
Optional
detect
Model
detect
Model
(
model
:
Model
)
:
null
|
M
Parameters
model:
Model
Returns
null
|
M
Optional
did
Attach
Model
did
Attach
Model
(
model
:
M
, targetModel
:
null
|
Model
)
:
void
Parameters
model:
M
targetModel:
null
|
Model
Returns
void
Optional
did
Bind
Super
Fastener
did
Bind
Super
Fastener
(
superFastener
:
Fastener
<
unknown
>
)
:
void
Parameters
superFastener:
Fastener
<
unknown
>
Returns
void
Optional
did
Detach
Model
did
Detach
Model
(
model
:
M
)
:
void
Parameters
model:
M
Returns
void
Optional
did
Inherit
did
Inherit
(
superFastener
:
Fastener
<
unknown
>
)
:
void
Parameters
superFastener:
Fastener
<
unknown
>
Returns
void
Optional
did
Mount
did
Mount
(
)
:
void
Returns
void
Optional
did
Set
Affinity
did
Set
Affinity
(
newAffinity
:
number
, oldAffinity
:
number
)
:
void
Parameters
newAffinity:
number
oldAffinity:
number
Returns
void
Optional
did
Set
Inherits
did
Set
Inherits
(
inherits
:
boolean
, superName
:
undefined
|
string
)
:
void
Parameters
inherits:
boolean
superName:
undefined
|
string
Returns
void
Optional
did
Unbind
Super
Fastener
did
Unbind
Super
Fastener
(
superFastener
:
Fastener
<
unknown
>
)
:
void
Parameters
superFastener:
Fastener
<
unknown
>
Returns
void
Optional
did
Uninherit
did
Uninherit
(
superFastener
:
Fastener
<
unknown
>
)
:
void
Parameters
superFastener:
Fastener
<
unknown
>
Returns
void
Optional
did
Unmount
did
Unmount
(
)
:
void
Returns
void
Optional
from
Any
from
Any
(
value
:
AnyModel
<
M
>
)
:
M
Parameters
value:
AnyModel
<
M
>
Returns
M
Optional
init
init
(
)
:
void
Returns
void
Optional
init
Model
init
Model
(
model
:
M
)
:
void
Parameters
model:
M
Returns
void
Optional
insert
Child
insert
Child
(
parent
:
Model
, child
:
M
, target
:
null
|
Model
, key
:
undefined
|
string
)
:
void
Parameters
parent:
Model
child:
M
target:
null
|
Model
key:
undefined
|
string
Returns
void
Optional
will
Attach
Model
will
Attach
Model
(
model
:
M
, targetModel
:
null
|
Model
)
:
void
Parameters
model:
M
targetModel:
null
|
Model
Returns
void
Optional
will
Bind
Super
Fastener
will
Bind
Super
Fastener
(
superFastener
:
Fastener
<
unknown
>
)
:
void
Parameters
superFastener:
Fastener
<
unknown
>
Returns
void
Optional
will
Detach
Model
will
Detach
Model
(
model
:
M
)
:
void
Parameters
model:
M
Returns
void
Optional
will
Inherit
will
Inherit
(
superFastener
:
Fastener
<
unknown
>
)
:
void
Parameters
superFastener:
Fastener
<
unknown
>
Returns
void
Optional
will
Mount
will
Mount
(
)
:
void
Returns
void
Optional
will
Set
Affinity
will
Set
Affinity
(
newAffinity
:
number
, oldAffinity
:
number
)
:
void
Parameters
newAffinity:
number
oldAffinity:
number
Returns
void
Optional
will
Set
Inherits
will
Set
Inherits
(
inherits
:
boolean
, superName
:
undefined
|
string
)
:
void
Parameters
inherits:
boolean
superName:
undefined
|
string
Returns
void
Optional
will
Unbind
Super
Fastener
will
Unbind
Super
Fastener
(
superFastener
:
Fastener
<
unknown
>
)
:
void
Parameters
superFastener:
Fastener
<
unknown
>
Returns
void
Optional
will
Uninherit
will
Uninherit
(
superFastener
:
Fastener
<
unknown
>
)
:
void
Parameters
superFastener:
Fastener
<
unknown
>
Returns
void
Optional
will
Unmount
will
Unmount
(
)
:
void
Returns
void
Modules
@swim/runtime
@swim/toolkit
@swim/ui
@swim/model
@swim/style
@swim/theme
@swim/view
@swim/dom
@swim/graphics
@swim/controller
@swim/ux
@swim/vis
@swim/maps
Model
Relation
Init
affinity
binds
extends
inherits
lazy
name
observes
parent
Model
static
type
create
Model
deinit
Model
detect
Model
did
Attach
Model
did
Bind
Super
Fastener
did
Detach
Model
did
Inherit
did
Mount
did
Set
Affinity
did
Set
Inherits
did
Unbind
Super
Fastener
did
Uninherit
did
Unmount
from
Any
init
init
Model
insert
Child
will
Attach
Model
will
Bind
Super
Fastener
will
Detach
Model
will
Inherit
will
Mount
will
Set
Affinity
will
Set
Inherits
will
Unbind
Super
Fastener
will
Uninherit
will
Unmount
Generated using
TypeDoc