package vue-jsoo
Binding of Vue_js
Install
Dune Dependency
Authors
Maintainers
Sources
vue-jsoo-0.3.tar.gz
md5=ba1262b631818c3d20eb872b0f6989de
sha512=d326ec29baa9abd5ad0629e3d854b78cb6846714d73b6517fa1f2341f909fe9b4cfd554c113674e133e23e8906d402ab0a3df4210dca1a775ea04c29486cb1cd
doc/src/vue-jsoo.mjs/mjs.ml.html
Source file mjs.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
include Ezjs_min type top = Unsafe.top type any = Unsafe.any let def_list f = function | [] -> undefined | l -> def (f l) let manip_list f a = of_list @@ f @@ to_list a type 'a table = 'a Table.t type 'a table_cons = T of 'a table | L of (string * 'a) list let to_table : 'a table_cons -> 'a table = function | T t -> t | L l -> Table.make l let to_tablef f : 'a table_cons -> 'a table = function | T t -> t | L l -> Table.makef f l let to_table_def : 'a table_cons -> 'a table optdef = function | T t -> if Table.length t = 0 then undefined else def t | L l -> def_list Table.make l let to_tablef_def f : 'a table_cons -> 'a table optdef = function | T t -> if Table.length t = 0 then undefined else def t | L l -> def_list (Table.makef f) l let to_any = Unsafe.inject let coerce = Unsafe.coerce let to_any_table f = function | L l -> L (List.map (fun (k, v) -> k, f v) l) | T t -> T (Table.(make (itemsf f t))) class type unit_promise = [unit, error t] Promise.promise0
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>