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
module Id : sig ... end
type 'a t = {
contents : 'a Id.Map.t; |
append : unit Ui_effect.t; |
set_length : int -> unit Ui_effect.t; |
remove : Id.t -> unit Ui_effect.t; |
}
val component :
Core.Source_code_position.t ->
'a Bonsai.Computation.t ->
'a t Bonsai.Computation.t
Given a computation, builds a new computation that can hold a dynamic number of the wrapped computation.
val component' :
Core.Source_code_position.t ->
'a Bonsai.Computation.t ->
wrap_remove:( 'a -> unit Ui_effect.t -> 'b ) ->
'b t Bonsai.Computation.t
Like component
, but with the power to extend the result of the input component with an event that removes itself.