Search
Preparing search index...
The search index is not available
storx
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
"Store"
StoRx
ViewStore
Class ViewStore<S, P>
Type parameters
S
P
Hierarchy
ViewStore
Implements
StoreDispatcher
<
S
>
Index
Constructors
constructor
Properties
id
map
Func
map
Reverse
Function
store
Methods
action
action
ByType
actions
dispatch
dispatch
With
Source
map
map
Function
observable
subscribe
subscribe
Event
subscribe
Reducer
subscribe
Reducer
Event
Constructors
constructor
new
View
Store
(
id
:
string
, mapFunc
:
function
, mapReverseFunction
:
function
, store
:
StoreDispatcher
<
P
>
)
:
ViewStore
Parameters
id:
string
mapFunc:
function
(
s
:
P
)
:
S
Parameters
s:
P
Returns
S
mapReverseFunction:
function
(
state
:
S
, parentState
:
P
)
:
P
Parameters
state:
S
parentState:
P
Returns
P
store:
StoreDispatcher
<
P
>
Returns
ViewStore
Properties
Private
id
id
:
string
Private
map
Func
map
Func
:
function
Type declaration
(
s
:
P
)
:
S
Parameters
s:
P
Returns
S
Private
map
Reverse
Function
map
Reverse
Function
:
function
Type declaration
(
state
:
S
, parentState
:
P
)
:
P
Parameters
state:
S
parentState:
P
Returns
P
Private
store
store
:
StoreDispatcher
<
P
>
Methods
action
action<A>
(
)
:
ActionManager
<
S
,
A
>
Type parameters
A
Returns
ActionManager
<
S
,
A
>
action
ByType
action
ByType<A>
(
type
:
object
)
:
ActionManager
<
S
,
A
>
Type parameters
A
Parameters
type:
object
Returns
ActionManager
<
S
,
A
>
actions
actions<A>
(
)
:
Observable
<
Event
<
A
>
>
Type parameters
A
Returns
Observable
<
Event
<
A
>
>
dispatch
dispatch<A>
(
action
:
A
)
:
void
Type parameters
A
Parameters
action:
A
Returns
void
dispatch
With
Source
dispatch
With
Source<A>
(
action
:
A
, source
:
string
)
:
void
Type parameters
A
Parameters
action:
A
source:
string
Returns
void
map
map<T>
(
path
:
string
)
:
Store
<
T
>
Type parameters
T
Parameters
path:
string
Returns
Store
<
T
>
map
Function
map
Function<T>
(
id
:
string
, map
:
function
, mapReverse
:
function
)
:
Store
<
T
>
Type parameters
T
Parameters
id:
string
map:
function
(
s
:
S
)
:
T
Parameters
s:
S
Returns
T
mapReverse:
function
(
state
:
T
, parentState
:
S
)
:
S
Parameters
state:
T
parentState:
S
Returns
S
Returns
Store
<
T
>
observable
observable
(
)
:
Observable
<
S
>
Returns
Observable
<
S
>
subscribe
subscribe<A>
(
actions
:
Observable
<
A
>
, reducer
:
function
)
:
void
Type parameters
A
Parameters
actions:
Observable
<
A
>
reducer:
function
(
s
:
S
, a
:
A
)
:
S
Parameters
s:
S
a:
A
Returns
S
Returns
void
subscribe
Event
subscribe
Event<A>
(
actions
:
Observable
<
Event
<
A
>
>
, reducer
:
function
)
:
void
Type parameters
A
Parameters
actions:
Observable
<
Event
<
A
>
>
reducer:
function
(
s
:
S
, a
:
A
)
:
S
Parameters
s:
S
a:
A
Returns
S
Returns
void
subscribe
Reducer
subscribe
Reducer<A>
(
actions
:
Observable
<
A
>
, reducer
:
Reducer
<
S
,
A
>
)
:
void
Type parameters
A
Parameters
actions:
Observable
<
A
>
reducer:
Reducer
<
S
,
A
>
Returns
void
subscribe
Reducer
Event
subscribe
Reducer
Event<A>
(
actions
:
Observable
<
Event
<
A
>
>
, reducer
:
Reducer
<
S
,
A
>
)
:
void
Type parameters
A
Parameters
actions:
Observable
<
Event
<
A
>
>
reducer:
Reducer
<
S
,
A
>
Returns
void
Globals
Action
Manager
Impl
Filter
Action
Manager
Reducer
Function
Store
Impl
Store
Utils
View
Reducer
View
Store
constructor
id
map
Func
map
Reverse
Function
store
action
action
ByType
actions
dispatch
dispatch
With
Source
map
map
Function
observable
subscribe
subscribe
Event
subscribe
Reducer
subscribe
Reducer
Event
Action
Manager
Action
Manager
Dispatcher
Event
Reducer
Store
Store
Dispatcher
create
Store
Generated using
TypeDoc