Byo_toplayer_private_vdom.For_byo_toplayerThe implementations of popover_custom and modal assume that their DOM is placed outside of the app root. If placed inside the app root, modal **will always** be inert, and popover_custom will be inert when any modal is open, even it is on top.
DO NOT USE THESE DIRECTLY IN YOUR APP!
val popover_custom :
?popover_attrs:Virtual_dom.Vdom.Attr.t list ->
?restore_focus_on_close:Restore_focus_on_close.t ->
?overflow_auto_wrapper:bool ->
?arrow:Virtual_dom.Vdom.Node.t ->
popover_content:Virtual_dom.Vdom.Node.t ->
unit ->
Virtual_dom.Vdom.Node.tWraps the input in a popover. Will not open or position the popover.
val modal :
?modal_attrs:Virtual_dom.Vdom.Attr.t list ->
?lock_body_scroll:bool ->
?restore_focus_on_close:Restore_focus_on_close.t ->
?overflow_auto_wrapper:bool ->
Virtual_dom.Vdom.Node.t ->
Virtual_dom.Vdom.Node.tReturns a popover that makes everything under it inert. The implementation assumes that the modal itself is outside of the app root. If this is placed inside the app root, it will make the whole document (including itself) inert, effectively disabling the entire page.
val focus_popover_on_open : Virtual_dom.Vdom.Attr.tListens for "toggle" events on the popover it is attached to. Every open, if nothing is already focused inside the popover, will focus the popover root.
val show_on_mount : Virtual_dom.Vdom.Attr.tval show_popover : Js_of_ocaml.Dom_html.element Js_of_ocaml.Js.t -> unitval find_nearest_popover_ancestor :
Js_of_ocaml.Dom_html.element Js_of_ocaml.Js.t ->
Js_of_ocaml.Dom_html.element Js_of_ocaml.Js.t option