packageincr_dom_interactive
A monad for composing chains of interactive UI elements
Install
Dune Dependency
Authors
Maintainers
Sources
v0.17.0.tar.gz
sha256=6444129e603cb3edbf005b5dfbe6cb27f86e102092c2d7fc87107f02ab61281b
Description
This library allows your program to receive input from the user using DOM elements such as checkboxes, text fields, and buttons. It allows you to inspect the user's input and decide afterwards what the rest of the [Interactive.t] should be. This library is intended to be used in conjunction with Incr_dom.
Published:26 May 2024
README
Incr_dom_interactive
A monad for composing chains of interactive UI elements inside anIncr_dom
application.
let open Interactive.Let_syntax inlet open Interactive.Primitives inlet submit_button = button ~text:"Submit" () inlet%bind_open user_input = text () inif String.length user_input < 10then let%map_open () = message "Please enter at least 10 characters." in Noneelse match%map submit_button with | Not_pressed -> None | Pressed -> Some user_input
Dependencies (13)
- js_of_ocaml-ppx
>= "5.1.1" & < "5.7.0"
- js_of_ocaml
>= "5.1.1" & < "5.7.0"
- dune
>= "3.11.0"
- virtual_dom
>= "v0.17" & < "v0.18"
- splay_tree
>= "v0.17" & < "v0.18"
- ppx_jane
>= "v0.17" & < "v0.18"
- incremental
>= "v0.17" & < "v0.18"
- incr_select
>= "v0.17" & < "v0.18"
- incr_map
>= "v0.17" & < "v0.18"
- incr_dom
>= "v0.17" & < "v0.18"
- async_kernel
>= "v0.17" & < "v0.18"
- async_js
>= "v0.17" & < "v0.18"
- ocaml
>= "5.1.0"
Dev Dependencies
None
Used by (1)
- incr_dom_sexp_form
>= "v0.17.0"
Conflicts
None
sectionYPositions = computeSectionYPositions($el), 10)" x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)" >
On This Page