package vue-jsoo
Binding of Vue_js
Install
Dune Dependency
Authors
Maintainers
Sources
archive?sha=d960c9bea36c709fdb3daaf319f047b49689ff45
md5=2cc7a479a0b824387f924ce83971095b
sha512=feaca68fb03c8a26ba4133f37ed8e303c5107d2bf1e73d798f739752bfc1fcb4ba53c5f6a6640c5d44cd6d52ccbb78188a2e5906e441eca98cc1af6eed29785c
doc/vue-jsoo.vuex/Vuex/index.html
Module Vuex
Source
Source
type ('state, 'getters) action_input = {
state : 'state Mjs.t;
getters : 'getters Mjs.t;
commit : ?payload:Mjs.any -> string -> unit;
dispatch : ?payload:Mjs.any -> string -> Mjs.unit_promise Mjs.t;
root_state : Mjs.any option;
root_getters : Mjs.any option;
}
input for actions
mutation type for subscribe
Source
type ('state, 'getters) options = ('state, 'getters) Internal.options = {
o_state : 'state Mjs.t;
o_getters : ('state Mjs.t -> Mjs.any) Mjs.table_cons;
mutations : ('state Mjs.t -> Mjs.any -> unit) Mjs.table_cons;
actions : (('state, 'getters) action_input -> Mjs.any -> unit) Mjs.table_cons;
plugins : Mjs.any list option;
strict : bool option;
devtools : bool option;
modules : (Mjs.top, Mjs.top) Internal.dynamic_cs_options Mjs.t Mjs.table_cons;
namespaced : bool option;
}
store constructor options
JS store object
JS module object
make module store function
commit to the state of the store
Source
val dispatch :
?payload:Mjs.any ->
?root:bool ->
'state store Mjs.t ->
string ->
(Mjs.unit_promise Mjs.t -> 'async) ->
'async
dispatch to the state of the store
hook for mutation subscription
hook for action subscription
register a new module to the store
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>