package virtual_dom

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
val of_values : ?style:Selectable_style.t -> ?extra_attrs:Virtual_dom.Vdom.Attr.t list -> ?disabled:bool -> ?layout:[ `Vertical | `Horizontal ] -> ?merge_behavior:Merge_behavior.t -> (module Display with type t = 'a) -> 'a list -> is_checked:('a -> bool) -> on_toggle:('a -> unit Virtual_dom.Vdom.Effect.t) -> Virtual_dom.Vdom.Node.t

Creates a list of checkboxes with labels.

val of_enum : ?style:Selectable_style.t -> ?extra_attrs:Virtual_dom.Vdom.Attr.t list -> ?disabled:bool -> ?merge_behavior:Merge_behavior.t -> (module Enum with type t = 'a) -> is_checked:('a -> bool) -> on_toggle:('a -> unit Virtual_dom.Vdom.Effect.t) -> Virtual_dom.Vdom.Node.t

Instead of passing individual values, uses all from the module to determine the items and order.

OCaml

Innovation. Community. Security.