package vue-jsoo

  1. Overview
  2. Docs

Functor to create a vue with typechek of input data

Parameters

module S : sig ... end

Signature

type data = S.data
include Vue_component.Tables_S with type all = S.all
type all = S.all
val methods_t : Mjs.any Mjs.table
val watch_t : (all Mjs.t -> Mjs.any -> Mjs.any -> Mjs.any) Mjs.table
val computed_t : (all Mjs.t -> Mjs.any Mjs.optdef) Mjs.table
val add_method : string -> (all Mjs.t -> 'a) -> unit
val add_method0 : string -> (all Mjs.t -> 'a) -> unit
val add_method1 : string -> (all Mjs.t -> 'a -> 'b) -> unit
val add_method2 : string -> (all Mjs.t -> 'a -> 'b -> 'c) -> unit
val add_method3 : string -> (all Mjs.t -> 'a -> 'b -> 'c -> 'd) -> unit
val add_method4 : string -> (all Mjs.t -> 'a -> 'b -> 'c -> 'd -> 'e) -> unit
val add_watch : string -> (all Mjs.t -> 'a -> 'a -> 'b) -> unit
val add_computed : string -> (all Mjs.t -> 'a Mjs.optdef) -> unit
val add_2way_computed : string -> get:(all Mjs.t -> 'a Mjs.optdef) -> set:(all Mjs.t -> 'b -> unit) -> unit
val add_component : string -> ('a, 'b) Vue_component.Internal.component_arg Mjs.t -> unit
val merge_lists_component : ?computed:(string * (all Mjs.t -> Mjs.any Mjs.optdef)) list -> ?methods:(string * Mjs.any) list -> ?watch:(string * (all Mjs.t -> Mjs.any -> Mjs.any -> Mjs.any)) list -> ?components: (string * (Mjs.top, Mjs.top) Vue_component.Internal.component_arg Mjs.t) list -> unit -> unit
val create : ?computed:(string * (all Mjs.t -> Mjs.any Mjs.optdef)) list -> ?methods:(string * Mjs.any) list -> ?watch:(string * (all Mjs.t -> Mjs.any -> Mjs.any -> Mjs.any)) list -> ?components: (string * (Mjs.top, Mjs.top) Vue_component.Internal.component_arg Mjs.t) list -> ?data:data Mjs.t -> ?router:Vue_router.router Mjs.t -> ?store:Mjs.top Vuex.store Mjs.t -> ?render:(all Mjs.t, Mjs.any -> Mjs.any) Mjs.meth_callback -> ?static_renders: (all Mjs.t, Mjs.any -> Mjs.any) Mjs.meth_callback Mjs.js_array Mjs.t -> ?version:Version.t -> unit -> all vue

create the vue object from previoulsy added data/methods/watchers/computed

val init : ?computed:(string * (all Mjs.t -> Mjs.any Mjs.optdef)) list -> ?methods:(string * Mjs.any) list -> ?watch:(string * (all Mjs.t -> Mjs.any -> Mjs.any -> Mjs.any)) list -> ?components: (string * (Mjs.top, Mjs.top) Vue_component.Internal.component_arg Mjs.t) list -> ?export:bool -> ?data:data Mjs.t -> ?show:bool -> ?suffix:string -> ?router:Vue_router.router Mjs.t -> ?store:Mjs.top Vuex.store Mjs.t -> ?render:(all Mjs.t, Mjs.any -> Mjs.any) Mjs.meth_callback -> ?static_renders: (all Mjs.t, Mjs.any -> Mjs.any) Mjs.meth_callback Mjs.js_array Mjs.t -> ?version:Version.t -> unit -> all vue

create and mount the vue object from previoulsy added data/methods/watchers/computed

val mount : ?export:bool -> ?show:bool -> ?suffix:string -> ?version:Version.t -> unit -> all vue

mount the vue object

val app : unit -> all vue

get the vue instance with the reference