package incr_dom_interactive

Build not yet checked
  1. Overview
  2. Docs
A monad for composing chains of interactive UI elements

Install

dune-project
 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.

Added to opam-repository:

README

Incr_dom_interactive

A monad for composing chains of interactive UI elements inside an Incr_dom application.

A form that only allows submission after 10 characters have been entered
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

Dependencies (13)

  1. js_of_ocaml-ppx >= "5.1.1" & < "5.7.0"
  2. js_of_ocaml >= "5.1.1" & < "5.7.0"
  3. dune >= "3.11.0"
  4. virtual_dom >= "v0.17" & < "v0.18~"
  5. splay_tree >= "v0.17" & < "v0.18~"
  6. ppx_jane >= "v0.17" & < "v0.18~"
  7. incremental >= "v0.17" & < "v0.18~"
  8. incr_select >= "v0.17" & < "v0.18~"
  9. incr_map >= "v0.17" & < "v0.18~"
  10. incr_dom >= "v0.17" & < "v0.18~"
  11. async_kernel >= "v0.17" & < "v0.18~"
  12. async_js >= "v0.17" & < "v0.18~"
  13. ocaml >= "5.1.0"

Dev Dependencies

None

Optional Dependencies

None

Used by (1)

  1. incr_dom_sexp_form >= "v0.17.0"

Conflicts

None

Build status

Results of building incr_dom_interactive with each compiler on check.ci.ocaml.org, run of against opam-repository 8a77e58. All results for this package.

Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.

This version is not in the latest run; the versions below are.

Version OCaml 4.11 OCaml 4.14 OCaml 5.2 OCaml 5.4 OCaml 5.5
v0.16.0 n/a n/a good n/a n/a
v0.15.1 good n/a n/a n/a n/a
  • good Package successfully built
  • partial One of the dependencies failed to build
  • bad Package failed to build
  • n/a Package is not available in this environment
  • internal Internal failure