package virtual_dom
OCaml bindings for the virtual-dom library
Install
Dune Dependency
Authors
Maintainers
Sources
v0.17.0.tar.gz
sha256=812711b4d5ce634a413580cd7096482de8d71abec9ae37bb01f7c0dcec2968ec
doc/virtual_dom.input_widgets/Vdom_input_widgets/Multi_select/index.html
Module Vdom_input_widgets.Multi_select
Source
Creates a multiple-selection list. This is different from Checklist in that the <select multiple> element is used underneath, rather than independent checkboxes. As a result:
- Clicking an element makes it the only one selected.
- Ctrl+clicking an element toggles it independently.
- Shift+clicking an element selects everything between it and the previous click.
- Clicking and dragging selects a range.
Source
val of_values :
?extra_attrs:Virtual_dom.Vdom.Attr.t list ->
?repeated_click_behavior:Repeated_click_behavior.t ->
?disabled:bool ->
?size:int ->
?merge_behavior:Merge_behavior.t ->
(module Set with type comparator_witness = 'cmp and type t = 'a) ->
'a list ->
selected:('a, 'cmp) Core.Set.t ->
on_change:(('a, 'cmp) Core.Set.t -> unit Virtual_dom.Vdom.Effect.t) ->
Virtual_dom.Vdom.Node.t
Source
val of_enum :
?extra_attrs:Virtual_dom.Vdom.Attr.t list ->
?repeated_click_behavior:Repeated_click_behavior.t ->
?disabled:bool ->
?size:int ->
?merge_behavior:Merge_behavior.t ->
(module Enum_set with type comparator_witness = 'cmp and type t = 'a) ->
selected:('a, 'cmp) Core.Set.t ->
on_change:(('a, 'cmp) Core.Set.t -> unit Virtual_dom.Vdom.Effect.t) ->
Virtual_dom.Vdom.Node.t
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>