package virtual_dom

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
val of_values : ?extra_attrs:Virtual_dom.Vdom.Attr.t list -> ?disabled:bool -> (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 : ?extra_attrs:Virtual_dom.Vdom.Attr.t list -> ?disabled:bool -> (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.