package bonsai
A library for building dynamic webapps, using Js_of_ocaml
Install
Dune Dependency
Authors
Maintainers
Sources
bonsai-v0.15.0.tar.gz
sha256=24c4c3149280abd639034ce3acf60e475a772202099e965be8bd8902524573ef
doc/bonsai.web_ui_extendy/Bonsai_web_ui_extendy/index.html
Module Bonsai_web_ui_extendy
module Id : sig ... end
val component :
Core.Source_code_position.t ->
'a Bonsai.Computation.t ->
'a t Bonsai.Computation.t
Given a computation, builds a new computation that can hold a dynamic number of the wrapped computation.
val component' :
Core.Source_code_position.t ->
'a Bonsai.Computation.t ->
wrap_remove:('a -> unit Ui_effect.t -> 'b) ->
'b t Bonsai.Computation.t
Like component
, but with the power to extend the result of the input component with an event that removes itself.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>