incr_dom_interactive
A monad for composing chains of interactive UI elements
README
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
Install
- Published
-
21 Mar 2022
- Authors
-
- Maintainers
-
Sources
incr_dom_interactive-v0.15.0.tar.gz
sha256=d2a539b528004eee6b424df33ee36abfc4454eb9e9ce8b5688de68c2629b9e80
Dependencies
js_of_ocaml-ppx
>= "3.9.0"
js_of_ocaml
>= "3.9.0" & < "4.0.0"
dune
>= "2.0.0"
virtual_dom
>= "v0.15" & < "v0.16"
splay_tree
>= "v0.15" & < "v0.16"
ppx_jane
>= "v0.15" & < "v0.16"
incremental
>= "v0.15" & < "v0.16"
incr_select
>= "v0.15" & < "v0.16"
incr_map
>= "v0.15" & < "v0.16"
incr_dom
>= "v0.15" & < "v0.16"
async_kernel
>= "v0.15" & < "v0.16"
async_js
>= "v0.15" & < "v0.16"
ocaml
>= "4.08.0"
Reverse Dependencies
incr_dom_sexp_form
>= "v0.15.0"