package vue-jsoo

  1. Overview
  2. Docs

Internal JS module

class type prop_object_js = object ... end
type vnode = Mjs.any
class type binding = object ... end
class type model = object ... end
class type ['data, 'all] component_common = object ... end
class type ['data, 'all] component_arg = object ... end
type 'all vue_instance = 'all Mjs.t
class type ['data, 'all] vue_object = object ... end
val js_prop_obj : prop_object -> prop_object_js Mjs.t
val make_prop : prop_options -> Mjs.any
val make_props : props_options -> Mjs.any
type ('data, 'all) component_args = {
  1. template : string option;
  2. props : props_options option;
  3. data : ('all Mjs.t -> 'data Mjs.t) option;
  4. render : ('all Mjs.t -> Mjs.any -> Mjs.any) option;
  5. computed : ('all Mjs.t -> Mjs.any Mjs.optdef) Mjs.table_cons option;
  6. watch : ('all Mjs.t -> Mjs.any -> Mjs.any -> Mjs.any) Mjs.table_cons option;
  7. methods : Mjs.any Mjs.table_cons option;
  8. lifecycle : (string * ('all Mjs.t -> unit)) list;
  9. error_captured : (Mjs.any -> Mjs.any -> string -> bool option) option;
  10. directives : (string * (string * (Js_of_ocaml.Dom.element Mjs.t -> binding Mjs.t -> vnode -> vnode -> unit)) list) list option;
  11. filters : (string * (Mjs.any -> Mjs.any)) list option;
  12. components : (Mjs.top, Mjs.top) component_arg Mjs.t Mjs.table_cons;
  13. mixins : Mjs.any list option;
  14. extends : Mjs.any option;
  15. name : string option;
  16. delimiters : (string * string) option;
  17. functional : bool option;
  18. model : (string option * string option) option;
  19. inherit_attrs : bool option;
  20. comments : bool option;
  21. hook_enter : (Vue_nav.push_obj -> Vue_nav.push_obj -> 'all Vue_nav.next) option;
  22. hook_update : ('all Mjs.t -> Vue_nav.push_obj -> Vue_nav.push_obj -> 'all Vue_nav.next) option;
  23. hook_leave : ('all Mjs.t -> Vue_nav.push_obj -> Vue_nav.push_obj -> 'all Vue_nav.next) option;
}
val make_arg : ('data, 'all) component_args -> ('data, 'all) component_arg Mjs.t
val make_arg_js : ?template:string -> ?render:('all Mjs.t -> Mjs.any -> Mjs.any) -> ?props:props_options -> ?data:('all Mjs.t -> 'data Mjs.t) -> ?computed:('all Mjs.t -> Mjs.any Mjs.optdef) Mjs.table_cons -> ?methods:Mjs.any Mjs.table_cons -> ?watch:('all Mjs.t -> Mjs.any -> Mjs.any -> Mjs.any) Mjs.table_cons -> ?lifecycle:(string * ('all Mjs.t -> unit)) list -> ?error_captured:(Mjs.any -> Mjs.any -> string -> bool option) -> ?directives: (string * (string * (Js_of_ocaml.Dom.element Mjs.t -> binding Mjs.t -> vnode -> vnode -> unit)) list) list -> ?filters:(string * (Mjs.any -> Mjs.any)) list -> ?components:(Mjs.top, Mjs.top) component_arg Mjs.t Mjs.table_cons -> ?mixins:Mjs.any list -> ?extends:Mjs.any -> ?name:string -> ?delimiters:(string * string) -> ?functional:bool -> ?model:(string option * string option) -> ?inherit_attrs:bool -> ?comments:bool -> ?enter:(Vue_nav.push_obj -> Vue_nav.push_obj -> 'all Vue_nav.next) -> ?update: ('all Mjs.t -> Vue_nav.push_obj -> Vue_nav.push_obj -> 'all Vue_nav.next) -> ?leave: ('all Mjs.t -> Vue_nav.push_obj -> Vue_nav.push_obj -> 'all Vue_nav.next) -> unit -> ('data, 'all) component_arg Mjs.t
OCaml

Innovation. Community. Security.