package bonsai
A library for building dynamic webapps, using Js_of_ocaml
Install
Dune Dependency
Authors
Maintainers
Sources
bonsai-v0.16.0.tar.gz
sha256=1d68aab713659951eba5b85f21d6f9382e0efa8579a02c3be65d9071c6e86303
doc/bonsai.web_ui_popover/Bonsai_web_ui_popover/Result/index.html
Module Bonsai_web_ui_popover.Result
Source
Source
type t = {
wrap : Bonsai_web.Vdom.Node.t -> Bonsai_web.Vdom.Node.t;
(*
*)wrap
is a function that you can call to attach the popover to an element.open_ : unit Bonsai_web.Effect.t;
(*effect that when scheduled, will open the popover.
*)close : unit Bonsai_web.Effect.t;
(*effect that when scheduled, will close the popover.
*)toggle : unit Bonsai_web.Effect.t;
(*effect that when scheduled, will close or open the popover depending on the current state.
*)is_open : bool;
}
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>