Module Skyline_popover_v1Source

Sourcemodule Position : sig ... end
Sourcemodule Alignment : sig ... end
Sourcemodule Width : sig ... end
Sourcetype t
Sourceval component : ?attrs:Bonsai_web.Vdom.Attr.t list Bonsai_web.Bonsai.t -> ?state: (bool Bonsai_web.Bonsai.t * (bool -> unit Bonsai_web.Effect.t) Bonsai_web.Bonsai.t) -> ?position:Position.t Bonsai_web.Bonsai.t -> ?alignment:Alignment.t Bonsai_web.Bonsai.t -> ?focus_on_show:bool Bonsai_web.Bonsai.t -> ?close_on_click_outside:bool Bonsai_web.Bonsai.t -> ?width:Width.t Bonsai_web.Bonsai.t -> ?padding:Css_gen.Length.t Bonsai_web.Bonsai.t -> (hide:unit Bonsai_web.Effect.t Bonsai_web.Bonsai.t -> Bonsai_web.Bonsai.graph @ local -> Bonsai_web.Vdom.Node.t Bonsai_web.Bonsai.t) -> Bonsai_web.Bonsai.graph @ local -> t Bonsai_web.Bonsai.t

An attribute that will attach the popover to a given element.

Sourceval visible : t -> bool

visible t is true if the popover is visible and false otherwise.

Sourceval show : t -> unit Bonsai_web.Effect.t

show t will show the popover. This is a noop if the popover is already visible.

Sourceval hide : t -> unit Bonsai_web.Effect.t

hide t will hide the popover. This is a noop if the popover is already hidden.

Sourceval toggle : t -> unit Bonsai_web.Effect.t

Switch between visible / hidden.