package vue-jsoo
Binding of Vue_js
Install
Dune Dependency
Authors
Maintainers
Sources
archive?sha=2a338bcccd3cdd4c5b3c488f84b954baa976840e
md5=d8095fc66a530f25abb2c0b994e2e720
sha512=0068240dff39fb5e08a61bb36540b6fffa5d015abb7b4f5eb6a00425f8d860d7f73493d63779b6cc269680192cdab4c3dc662c5631ae1e195f6f58e92815f4e2
doc/vue-jsoo.vuex/Vuex/index.html
Module Vuex
Source
Source
type 'state action_input = {
state : 'state Mjs.t;
getters : ('state Mjs.t -> ('state Mjs.t -> Mjs.any) Mjs.table -> Mjs.any) Mjs.table;
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 -> (Mjs.any -> Mjs.any) Mjs.table -> Mjs.any) Mjs.table option;
}
input for actions
mutation type for subscribe
Source
type 'state options = 'state 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 action_input -> Mjs.any -> unit) Mjs.table_cons;
plugins : Mjs.any list option;
strict : bool option;
devtools : bool option;
modules : 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 ->
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)"
>