package virtual_dom

  1. Overview
  2. Docs
OCaml bindings for the virtual-dom library

Install

Dune Dependency

Authors

Maintainers

Sources

virtual_dom-v0.16.0.tar.gz
sha256=0c6f07894dce56db88d46b3aa4f2cad1a84aeaf0009560a285492f9f2959d565

doc/virtual_dom.input_widgets/Vdom_input_widgets/Radio_buttons/index.html

Module Vdom_input_widgets.Radio_buttonsSource

Sourceval of_values : ?extra_attrs:Virtual_dom.Vdom.Attr.t list -> ?disabled:bool -> ?style:Selectable_style.t -> ?merge_behavior:Merge_behavior.t -> (module Equal with type t = 'a) -> name:string -> on_click:('a -> unit Virtual_dom.Vdom.Effect.t) -> selected:'a option -> 'a list -> Virtual_dom.Vdom.Node.t

Creates a radio button input with a button for each of the corresponding values passed in. Extra attrs for individual buttons can be passed through extra_element_attrs, which gets access to whether the current element is selected or not.

Sourceval of_values_horizontal : ?extra_attrs:Virtual_dom.Vdom.Attr.t list -> ?disabled:bool -> ?style:Selectable_style.t -> ?merge_behavior:Merge_behavior.t -> (module Equal with type t = 'a) -> name:string -> on_click:('a -> unit Virtual_dom.Vdom.Effect.t) -> selected:'a option -> 'a list -> Virtual_dom.Vdom.Node.t

Identical to of_values, but adds some style tags so that the list is displayed horizontally instead of vertically.

OCaml

Innovation. Community. Security.