package incr_dom_interactive
A monad for composing chains of interactive UI elements
Install
Dune Dependency
Authors
Maintainers
Sources
v0.15.1.tar.gz
sha256=523b9c27e5103717db4e40b43f8124da2863ab0273e6e1ef1ba8577b44a72523
README.md.html
Incr_dom_interactive
A monad for composing chains of interactive UI elements inside an Incr_dom
application.
let open Interactive.Let_syntax in
let open Interactive.Primitives in
let submit_button = button ~text:"Submit" () in
let%bind_open user_input = text () in
if String.length user_input < 10
then
let%map_open () = message "Please enter at least 10 characters." in
None
else
match%map submit_button with
| Not_pressed -> None
| Pressed -> Some user_input
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>