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
SelectionService
Class SelectionService<M>
Type parameters
M =
unknown
Hierarchy
Service
<
M
>
SelectionService
Index
Constructors
constructor
Properties
observer
Type
observers
roots
selections
Accessors
attached
Methods
attach
Root
detach
Root
did
Attach
did
Attach
Root
did
Detach
did
Detach
Root
did
Observe
did
Select
did
Unobserve
did
Unselect
for
Each
Observer
is
Selected
observe
on
Attach
on
Attach
Root
on
Detach
on
Detach
Root
on
Observe
on
Select
on
Unobserve
on
Unselect
select
toggle
unobserve
unselect
unselect
All
will
Attach
will
Attach
Root
will
Detach
will
Detach
Root
will
Observe
will
Select
will
Unobserve
will
Unselect
global
Constructors
constructor
new
Selection
Service<M>
(
)
:
SelectionService
<
M
>
Type parameters
M =
unknown
Returns
SelectionService
<
M
>
Properties
Optional
Readonly
observer
Type
observer
Type
:
Class
<
SelectionServiceObserver
<
M
,
SelectionService
<
M
>
>
>
Readonly
observers
observers
:
readonly
SelectionServiceObserver
<
M
,
SelectionService
<
M
>
>
[]
Readonly
roots
roots
:
readonly
M
[]
Readonly
selections
selections
:
readonly
Model
[]
Accessors
attached
get
attached
(
)
:
boolean
Returns
boolean
Methods
attach
Root
attach
Root
(
root
:
M
)
:
void
Parameters
root:
M
Returns
void
detach
Root
detach
Root
(
root
:
M
)
:
void
Parameters
root:
M
Returns
void
Protected
did
Attach
did
Attach
(
)
:
void
Returns
void
Protected
did
Attach
Root
did
Attach
Root
(
root
:
M
)
:
void
Parameters
root:
M
Returns
void
Protected
did
Detach
did
Detach
(
)
:
void
Returns
void
Protected
did
Detach
Root
did
Detach
Root
(
root
:
M
)
:
void
Parameters
root:
M
Returns
void
Protected
did
Observe
did
Observe
(
observer
:
SelectionServiceObserver
<
M
,
SelectionService
<
M
>
>
)
:
void
Parameters
observer:
SelectionServiceObserver
<
M
,
SelectionService
<
M
>
>
Returns
void
Protected
did
Select
did
Select
(
model
:
Model
, index
:
number
, options
:
null
|
SelectionOptions
)
:
void
Parameters
model:
Model
index:
number
options:
null
|
SelectionOptions
Returns
void
Protected
did
Unobserve
did
Unobserve
(
observer
:
SelectionServiceObserver
<
M
,
SelectionService
<
M
>
>
)
:
void
Parameters
observer:
SelectionServiceObserver
<
M
,
SelectionService
<
M
>
>
Returns
void
Protected
did
Unselect
did
Unselect
(
model
:
Model
)
:
void
Parameters
model:
Model
Returns
void
Protected
for
Each
Observer
for
Each
Observer<T>
(
callback
:
(
observer
:
SelectionServiceObserver
<
M
,
SelectionService
<
M
>
>
)
=>
void
|
T
)
:
undefined
|
T
Type parameters
T
Parameters
callback:
(
observer
:
SelectionServiceObserver
<
M
,
SelectionService
<
M
>
>
)
=>
void
|
T
(
observer
:
SelectionServiceObserver
<
M
,
SelectionService
<
M
>
>
)
:
void
|
T
Parameters
observer:
SelectionServiceObserver
<
M
,
SelectionService
<
M
>
>
Returns
void
|
T
Returns
undefined
|
T
is
Selected
is
Selected
(
model
:
Model
)
:
boolean
Parameters
model:
Model
Returns
boolean
observe
observe
(
observer
:
SelectionServiceObserver
<
M
,
SelectionService
<
M
>
>
)
:
void
Parameters
observer:
SelectionServiceObserver
<
M
,
SelectionService
<
M
>
>
Returns
void
Protected
on
Attach
on
Attach
(
)
:
void
Returns
void
Protected
on
Attach
Root
on
Attach
Root
(
root
:
M
)
:
void
Parameters
root:
M
Returns
void
Protected
on
Detach
on
Detach
(
)
:
void
Returns
void
Protected
on
Detach
Root
on
Detach
Root
(
root
:
M
)
:
void
Parameters
root:
M
Returns
void
Protected
on
Observe
on
Observe
(
observer
:
SelectionServiceObserver
<
M
,
SelectionService
<
M
>
>
)
:
void
Parameters
observer:
SelectionServiceObserver
<
M
,
SelectionService
<
M
>
>
Returns
void
Protected
on
Select
on
Select
(
model
:
Model
, index
:
number
, options
:
null
|
SelectionOptions
)
:
void
Parameters
model:
Model
index:
number
options:
null
|
SelectionOptions
Returns
void
Protected
on
Unobserve
on
Unobserve
(
observer
:
SelectionServiceObserver
<
M
,
SelectionService
<
M
>
>
)
:
void
Parameters
observer:
SelectionServiceObserver
<
M
,
SelectionService
<
M
>
>
Returns
void
Protected
on
Unselect
on
Unselect
(
model
:
Model
)
:
void
Parameters
model:
Model
Returns
void
select
select
(
model
:
Model
, options
?:
null
|
SelectionOptions
, index
?:
number
)
:
void
Parameters
model:
Model
Optional
options:
null
|
SelectionOptions
Optional
index:
number
Returns
void
toggle
toggle
(
model
:
Model
, options
?:
null
|
SelectionOptions
, index
?:
number
)
:
void
Parameters
model:
Model
Optional
options:
null
|
SelectionOptions
Optional
index:
number
Returns
void
unobserve
unobserve
(
observer
:
SelectionServiceObserver
<
M
,
SelectionService
<
M
>
>
)
:
void
Parameters
observer:
SelectionServiceObserver
<
M
,
SelectionService
<
M
>
>
Returns
void
unselect
unselect
(
model
:
Model
)
:
void
Parameters
model:
Model
Returns
void
unselect
All
unselect
All
(
)
:
void
Returns
void
Protected
will
Attach
will
Attach
(
)
:
void
Returns
void
Protected
will
Attach
Root
will
Attach
Root
(
root
:
M
)
:
void
Parameters
root:
M
Returns
void
Protected
will
Detach
will
Detach
(
)
:
void
Returns
void
Protected
will
Detach
Root
will
Detach
Root
(
root
:
M
)
:
void
Parameters
root:
M
Returns
void
Protected
will
Observe
will
Observe
(
observer
:
SelectionServiceObserver
<
M
,
SelectionService
<
M
>
>
)
:
void
Parameters
observer:
SelectionServiceObserver
<
M
,
SelectionService
<
M
>
>
Returns
void
Protected
will
Select
will
Select
(
model
:
Model
, index
:
number
, options
:
null
|
SelectionOptions
)
:
void
Parameters
model:
Model
index:
number
options:
null
|
SelectionOptions
Returns
void
Protected
will
Unobserve
will
Unobserve
(
observer
:
SelectionServiceObserver
<
M
,
SelectionService
<
M
>
>
)
:
void
Parameters
observer:
SelectionServiceObserver
<
M
,
SelectionService
<
M
>
>
Returns
void
Protected
will
Unselect
will
Unselect
(
model
:
Model
)
:
void
Parameters
model:
Model
Returns
void
Static
global
global<M>
(
)
:
SelectionService
<
M
>
Type parameters
M
Returns
SelectionService
<
M
>
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
Selection
Service
constructor
observer
Type
observers
roots
selections
attached
attach
Root
detach
Root
did
Attach
did
Attach
Root
did
Detach
did
Detach
Root
did
Observe
did
Select
did
Unobserve
did
Unselect
for
Each
Observer
is
Selected
observe
on
Attach
on
Attach
Root
on
Detach
on
Detach
Root
on
Observe
on
Select
on
Unobserve
on
Unselect
select
toggle
unobserve
unselect
unselect
All
will
Attach
will
Attach
Root
will
Detach
will
Detach
Root
will
Observe
will
Select
will
Unobserve
will
Unselect
global
Generated using
TypeDoc