package bonsai
A library for building dynamic webapps, using Js_of_ocaml
Install
Dune Dependency
Authors
Maintainers
Sources
bonsai-v0.14.0.tar.gz
sha256=43f35d648644492d776bf2c7b86c8227e7793615b6a658432e95f8dccd3631f8
md5=b5e743dbfa64d0da5fd660f14cd0b549
doc/bonsai.types/Bonsai_types/module-type-Definition/index.html
Module type Bonsai_types.Definition
val extension_constructor : Obj.Extension_constructor.t
The easiest way to define extension_constructor
is to use the built-in extension node:
type ('input, 'model, 'action, 'result, 'incr, 'event) unpacked +=
| C : foo -> (_, _, _, _, _, _) unpacked
let extension_constructor = [%extension_constructor C]
val sexp_of_unpacked : ('a, 'b, 'c, 'd, 'e, 'f) unpacked -> Core_kernel.Sexp.t
Only needs to handle the case(s) defined in this module.
val eval : ('input, 'model, 'action, 'result, 'incr, 'event) eval_type
Only needs to handle the case(s) defined in this module.
val visit :
('input, 'result, 'incr, 'event) Packed.t ->
Visitor.t ->
('input, 'result, 'incr, 'event) Packed.t
An implementation of visit
only needs to handle the cases defined in this module.
The implementation of visit
should call visit_ext
on any subcomponents contained in the constructor. With the new subcomponents returned by visit_ext
, the implementation should re-construct itself, and call visit
on this new value.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>