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_element_size_hooks
module Behavior : sig ... end
val attr : ?behavior:Behavior.t -> unit -> Bonsai_web.Vdom.Attr.t
This hook is placed on a node, and that node will be resized to match the content-size of its parent. The different behaviors are as follows:
- Grow_to_fill: The element will only grow to fill space. never shrink.
- Shrink_to_avoid_overflow: The element will only shrink to avoid clipping out of its parents content. It will never grow.
- Grow_or_shrink_to_match_parent_size: The node will grow or shrink to take up as much space as possible.
The default behavior is Shrink_to_avoid_overflow
val attr_for_parent__recommended : Bonsai_web.Vdom.Attr.t
It is recommended that you place these attributes on the parent of the node that is given attr
.
Currently all this attribute does is set overflow: hidden
, which prevents scrollbars from showing up on the parent node.
ON THIS PAGE
No table of contents