package incr_dom_widgets

  1. Overview
  2. Docs

Wrappers to create VDom input fields using field ids.

val text : State.t -> string Id.t -> Incr_dom.Vdom.Attr.t list -> Incr_dom.Vdom.Node.t
val textarea : State.t -> string Id.t -> Incr_dom.Vdom.Attr.t list -> Incr_dom.Vdom.Node.t
val checkbox : State.t -> bool Id.t -> Incr_dom.Vdom.Attr.t list -> Incr_dom.Vdom.Node.t
val radio_button : State.t -> 'a Variant_id.t -> Incr_dom.Vdom.Attr.t list -> ('a * Incr_dom.Vdom.Node.t) list
val dropdown : State.t -> 'a Variant_id.t -> Incr_dom.Vdom.Attr.t list -> ?compare:('a -> 'a -> int) -> ('a -> string) -> Incr_dom.Vdom.Node.t

Dropdown for all initially provided values optionally sorted using the provided compare function.

OCaml

Innovation. Community. Security.