Documentation
Code
GitLab
@geogirafe/lib-geoportal
tools/state/statemanager
StateManager
Class StateManager
Hierarchy (
View Summary
)
GirafeSingleton
StateManager
Index
Constructors
constructor
Properties
config
Manager
Accessors
state
Methods
is
Null
Or
Undefined
is
Null
Or
Undefined
Or
Blank
subscribe
unsubscribe
get
Instance
Constructors
constructor
new
StateManager
(
type
:
string
)
:
StateManager
Parameters
type
:
string
Returns
StateManager
Properties
config
Manager
configManager
:
ConfigManager
Accessors
state
get
state
()
:
State
Returns
State
Methods
is
Null
Or
Undefined
isNullOrUndefined
(
val
:
unknown
)
:
val
is
undefined
|
null
Parameters
val
:
unknown
Returns
val
is
undefined
|
null
is
Null
Or
Undefined
Or
Blank
isNullOrUndefinedOrBlank
(
val
:
unknown
)
:
val
is
undefined
|
null
|
""
Parameters
val
:
unknown
Returns
val
is
undefined
|
null
|
""
subscribe
subscribe
(
path
:
string
,
callback
:
Callback
)
:
Callback
Parameters
path
:
string
callback
:
Callback
Returns
Callback
subscribe
(
path
:
RegExp
,
callback
:
Callback
)
:
Callback
Parameters
path
:
RegExp
callback
:
Callback
Returns
Callback
unsubscribe
unsubscribe
(
callback
:
Callback
)
:
void
Unsubscribe one or multiple trackers by their callbacks.
Parameters
callback
:
Callback
Returns
void
unsubscribe
(
callbacks
:
Callback
[]
)
:
void
Unsubscribe one or multiple trackers by their callbacks.
Parameters
callbacks
:
Callback
[]
Returns
void
Static
get
Instance
getInstance
<
T
>
(
this
:
Constructor
<
T
>
)
:
T
Type Parameters
T
Parameters
this
:
Constructor
<
T
>
Returns
T
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
config
Manager
Accessors
state
Methods
is
Null
Or
Undefined
is
Null
Or
Undefined
Or
Blank
subscribe
unsubscribe
get
Instance
@geogirafe/lib-geoportal
Loading...