bonsai
A library for building dynamic webapps, using Js_of_ocaml
1024" x-on:close-sidebar="sidebar=window.innerWidth > 1024 && true">
package bonsai
-
bonsai
-
-
bonsai.bench
-
bonsai.example_chat_open_source_native
-
bonsai.example_chat_open_source_native_common
-
-
bonsai.extra
-
-
bonsai.focus_ring
-
bonsai.protocol
-
bonsai.tailwind_colors
-
bonsai.test
-
bonsai.test.dot
-
bonsai.web_test
-
bonsai.web_ui_common_components
-
bonsai.web_ui_drag_and_drop
-
bonsai.web_ui_element_size_hooks
-
bonsai.web_ui_file
-
bonsai.web_ui_file_from_web_file
-
bonsai.web_ui_form
-
-
bonsai.web_ui_freeform_multiselect
-
bonsai.web_ui_multi_select
-
-
bonsai.web_ui_query_box
-
bonsai.web_ui_reorderable_list
-
bonsai.web_ui_typeahead
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Library bonsai.web_ui_multi_select
type t = {
view : Bonsai_web.Vdom.Node.t; | |
view_for_testing : string Core.Lazy.t; | |
key_handler : Vdom_keyboard.Keyboard_event_handler.t; | |
inject : Action.t -> unit Bonsai_web.Vdom.Effect.t; | (*
|
selection : Item.Set.t Key.Map.t; |
}
val selection : t -> Item.Set.t Key.Map.t
val inject : t -> Action.t -> unit Bonsai_web.Vdom.Effect.t
val key_handler : t -> Vdom_keyboard.Keyboard_event_handler.t
val view_for_testing : t -> string Core.Lazy.t
val view : t -> Bonsai_web.Vdom.Node.t
module Fields : sig ... end
val view_with_keydown_handler : t -> Bonsai_web.Vdom.Node.t
A DOM node very similar to t.view
, but with a keydown handler attached to deal with keyboard events. We provide both this and view
/ key_handler
separately, as the latter is required when embedding this component into an incr_dom app -- since incr_dom likes to always have the root node be in focus, it is required that one constructs one big overall Keyboard_event_handler.t for the entire page.
ON THIS PAGE
No table of contents