saealib.core.StateView#
- class saealib.core.StateView(store, reads, *, context=None, dispatch=None)[ソース]#
ベースクラス:
objectRead-only projection of a store for declared state keys.
- パラメータ:
store (StateStore)
reads (Iterable[StateKey] | StateContract)
context (object | None)
dispatch (Callable[[object], None] | None)
Methods
Return presence for a declared key. |
|
Dispatch a component event through the bound runtime callback. |
|
Return a declared value, making arrays read-only for the caller. |
Method Details
- StateView.__init__(store, reads, *, context=None, dispatch=None)[ソース]#
- パラメータ:
store (StateStore)
reads (Iterable[StateKey] | StateContract)
context (object | None)
dispatch (Callable[[object], None] | None)
- 戻り値の型:
None