package vue-jsoo
Binding of Vue_js
Install
Dune Dependency
Authors
Maintainers
Sources
vue-jsoo-0.3.tar.gz
md5=ba1262b631818c3d20eb872b0f6989de
sha512=d326ec29baa9abd5ad0629e3d854b78cb6846714d73b6517fa1f2341f909fe9b4cfd554c113674e133e23e8906d402ab0a3df4210dca1a775ea04c29486cb1cd
doc/vue-jsoo.component/Vue_component/index.html
Module Vue_component
Source
Source
type js_type =
| JString of string
| JObject of Mjs.any
| JNumber of float
| JInt of int
| JBool of bool
| JArray of Mjs.any list
| JOther of (Mjs.js_string Mjs.t -> Mjs.any) Mjs.callback * Mjs.any
JS constructors
Source
type prop_object = {
pr_default : js_type;
pr_required : bool option;
pr_validator : (string -> bool) option;
}
generic prop object
possible types for prop
constructor of prop object
possible types for props argument
Source
type 'all component_element =
| CTemplate of string
| CRender of ('all Mjs.t, Mjs.any -> Mjs.any) Mjs.meth_callback * ('all Mjs.t, Mjs.any -> Mjs.any) Mjs.meth_callback Mjs.js_array Mjs.t
possible types for component rendering : template or render functions
Source
type ('data, 'all) component_args = ('data, 'all) Internal.component_args = {
template : string option;
props : props_options option;
data : ('all Mjs.t -> 'data Mjs.t) option;
render : ('all Mjs.t, Mjs.any -> Mjs.any) Mjs.meth_callback option;
static_renders : ('all Mjs.t, Mjs.any -> Mjs.any) Mjs.meth_callback Mjs.js_array Mjs.t option;
computed : ('all Mjs.t -> Mjs.any Mjs.optdef) Mjs.table_cons option;
watch : ('all Mjs.t -> Mjs.any -> Mjs.any -> Mjs.any) Mjs.table_cons option;
methods : Mjs.any Mjs.table_cons option;
lifecycle : (string * ('all Mjs.t -> unit)) list;
error_captured : (Mjs.any -> Mjs.any -> string -> bool option) option;
directives : (string * (string * (Js_of_ocaml.Dom.element Mjs.t -> Internal.binding Mjs.t -> Internal.vnode -> Internal.vnode -> unit)) list) list option;
filters : (string * (Mjs.any -> Mjs.any)) list option;
components : (Mjs.top, Mjs.top) Internal.component_arg Mjs.t Mjs.table_cons;
mixins : Mjs.any list option;
extends : Mjs.any option;
name : string option;
delimiters : (string * string) option;
functional : bool option;
model : (string option * string option) option;
inherit_attrs : bool option;
comments : bool option;
hook_enter : (Vue_nav.push_obj -> Vue_nav.push_obj -> 'all Vue_nav.next) option;
hook_update : ('all Mjs.t -> Vue_nav.push_obj -> Vue_nav.push_obj -> 'all Vue_nav.next) option;
hook_leave : ('all Mjs.t -> Vue_nav.push_obj -> Vue_nav.push_obj -> 'all Vue_nav.next) option;
}
component arguments object
empty component arguments object
generic component js type
Source
val make :
?template:string ->
?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 ->
?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 ->
Internal.binding Mjs.t ->
Internal.vnode ->
Internal.vnode ->
unit))
list)
list ->
?filters:(string * (Mjs.any -> Mjs.any)) list ->
?components:(Mjs.top, Mjs.top) Internal.component_arg Mjs.t Mjs.table_cons ->
?mixins:Mjs.any list ->
?extends:Mjs.any ->
?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) ->
?app:_ Mjs.t ->
?version:Version.t ->
string ->
'all component
generic component maker Vue.component
Functor to fill methods/watch/computed/components objects
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>