package virtual_dom
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/Checklist/index.html
Module Vdom_input_widgets.Checklist
Source
Source
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.
Source
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.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>