Search
Preparing search index...
The search index is not available
Swim Toolkit
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Swim Toolkit
@swim/util
Service
Class Service<R>
Type parameters
R
Hierarchy
Service
WarpService
RefreshService
SelectionService
ViewportService
DisplayService
LayoutService
ThemeService
ModalService
DomService
ExecuteService
HistoryService
StorageService
Implements
Observable
Index
Constructors
constructor
Properties
observer
Type
observers
roots
Accessors
attached
Methods
attach
Root
detach
Root
did
Attach
did
Attach
Root
did
Detach
did
Detach
Root
did
Observe
did
Unobserve
for
Each
Observer
observe
on
Attach
on
Attach
Root
on
Detach
on
Detach
Root
on
Observe
on
Unobserve
unobserve
will
Attach
will
Attach
Root
will
Detach
will
Detach
Root
will
Observe
will
Unobserve
Constructors
constructor
new
Service<R>
(
)
:
Service
<
R
>
Type parameters
R
Returns
Service
<
R
>
Properties
Optional
Readonly
observer
Type
observer
Type
:
Class
<
ServiceObserver
<
R
,
Service
<
R
>
>
>
Readonly
observers
observers
:
readonly
ServiceObserver
<
R
,
Service
<
R
>
>
[]
Readonly
roots
roots
:
readonly
R
[]
Accessors
attached
get
attached
(
)
:
boolean
Returns
boolean
Methods
attach
Root
attach
Root
(
root
:
R
)
:
void
Parameters
root:
R
Returns
void
detach
Root
detach
Root
(
root
:
R
)
:
void
Parameters
root:
R
Returns
void
Protected
did
Attach
did
Attach
(
)
:
void
Returns
void
Protected
did
Attach
Root
did
Attach
Root
(
root
:
R
)
:
void
Parameters
root:
R
Returns
void
Protected
did
Detach
did
Detach
(
)
:
void
Returns
void
Protected
did
Detach
Root
did
Detach
Root
(
root
:
R
)
:
void
Parameters
root:
R
Returns
void
Protected
did
Observe
did
Observe
(
observer
:
ServiceObserver
<
R
,
Service
<
R
>
>
)
:
void
Parameters
observer:
ServiceObserver
<
R
,
Service
<
R
>
>
Returns
void
Protected
did
Unobserve
did
Unobserve
(
observer
:
ServiceObserver
<
R
,
Service
<
R
>
>
)
:
void
Parameters
observer:
ServiceObserver
<
R
,
Service
<
R
>
>
Returns
void
Protected
for
Each
Observer
for
Each
Observer<T>
(
callback
:
(
observer
:
ServiceObserver
<
R
,
Service
<
R
>
>
)
=>
void
|
T
)
:
undefined
|
T
Type parameters
T
Parameters
callback:
(
observer
:
ServiceObserver
<
R
,
Service
<
R
>
>
)
=>
void
|
T
(
observer
:
ServiceObserver
<
R
,
Service
<
R
>
>
)
:
void
|
T
Parameters
observer:
ServiceObserver
<
R
,
Service
<
R
>
>
Returns
void
|
T
Returns
undefined
|
T
observe
observe
(
observer
:
ServiceObserver
<
R
,
Service
<
R
>
>
)
:
void
Parameters
observer:
ServiceObserver
<
R
,
Service
<
R
>
>
Returns
void
Protected
on
Attach
on
Attach
(
)
:
void
Returns
void
Protected
on
Attach
Root
on
Attach
Root
(
root
:
R
)
:
void
Parameters
root:
R
Returns
void
Protected
on
Detach
on
Detach
(
)
:
void
Returns
void
Protected
on
Detach
Root
on
Detach
Root
(
root
:
R
)
:
void
Parameters
root:
R
Returns
void
Protected
on
Observe
on
Observe
(
observer
:
ServiceObserver
<
R
,
Service
<
R
>
>
)
:
void
Parameters
observer:
ServiceObserver
<
R
,
Service
<
R
>
>
Returns
void
Protected
on
Unobserve
on
Unobserve
(
observer
:
ServiceObserver
<
R
,
Service
<
R
>
>
)
:
void
Parameters
observer:
ServiceObserver
<
R
,
Service
<
R
>
>
Returns
void
unobserve
unobserve
(
observer
:
ServiceObserver
<
R
,
Service
<
R
>
>
)
:
void
Parameters
observer:
ServiceObserver
<
R
,
Service
<
R
>
>
Returns
void
Protected
will
Attach
will
Attach
(
)
:
void
Returns
void
Protected
will
Attach
Root
will
Attach
Root
(
root
:
R
)
:
void
Parameters
root:
R
Returns
void
Protected
will
Detach
will
Detach
(
)
:
void
Returns
void
Protected
will
Detach
Root
will
Detach
Root
(
root
:
R
)
:
void
Parameters
root:
R
Returns
void
Protected
will
Observe
will
Observe
(
observer
:
ServiceObserver
<
R
,
Service
<
R
>
>
)
:
void
Parameters
observer:
ServiceObserver
<
R
,
Service
<
R
>
>
Returns
void
Protected
will
Unobserve
will
Unobserve
(
observer
:
ServiceObserver
<
R
,
Service
<
R
>
>
)
:
void
Parameters
observer:
ServiceObserver
<
R
,
Service
<
R
>
>
Returns
void
Modules
@swim/runtime
@swim/core
@swim/util
@swim/codec
@swim/fastener
@swim/collections
@swim/constraint
@swim/structure
@swim/streamlet
@swim/dataflow
@swim/recon
@swim/uri
@swim/math
@swim/geo
@swim/time
@swim/host
@swim/toolkit
Service
constructor
observer
Type
observers
roots
attached
attach
Root
detach
Root
did
Attach
did
Attach
Root
did
Detach
did
Detach
Root
did
Observe
did
Unobserve
for
Each
Observer
observe
on
Attach
on
Attach
Root
on
Detach
on
Detach
Root
on
Observe
on
Unobserve
unobserve
will
Attach
will
Attach
Root
will
Detach
will
Detach
Root
will
Observe
will
Unobserve
Generated using
TypeDoc