package gen_js_api
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
Module Ojs
Binding with JS values.
Mapper for built-in types
val string_of_js : t -> stringval string_to_js : string -> tval int_of_js : t -> intval int_to_js : int -> tval bool_of_js : t -> boolval bool_to_js : bool -> tval float_of_js : t -> floatval float_to_js : float -> tWrap OCaml functions as JS functions
Wrap an OCaml function of known arity (>=1) into a JS function. Extra arguments are discarded and missing argument are filled with 'undefined'.
JS objects
val empty_obj : unit -> tval has_property : t -> string -> boolval iter_properties : t -> (string -> unit) -> unitCalling JS functions
Variant of Ojs.call where the arguments are passed as an already built JS array.
Variant of Ojs.apply where the arguments are passed as an already built JS array.
Variant of Ojs.new_obj where the arguments are passed as an already built JS array.
Arrays
val array_make : int -> tMisc
val global : tval null : tval variable : string -> tval type_of : t -> stringval delete : t -> string -> unitval is_null : t -> boolval obj_type : t -> stringReturns: "object Array" "object Object" "object Number" "object String" "object Null" "object Boolean"
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page