popover

fun ControlManager.popover(anchor: () -> Rectangle?, vararg classes: String, side: PopoverSide = PopoverSide.BELOW, dismissable: Boolean = true, group: String? = null, focus: Boolean = false, init: Div.() -> Unit): Popover(source)

Shows a popover that init builds, next to the area of the window that anchor gives in every frame, on side of it, or on the other side when it does not fit there, and moved along the side to stay inside the window; while anchor gives null it is hidden. It is not modal: the rest of the panel keeps working. When it is dismissable a press outside it and outside the anchor, or escape, closes it. Opening a popover of a group closes the other one of that group. With focus, the keyboard focus moves to its first control; the focus leaves it when it closes.

The popover is a popover with classes; its content scrolls when it is higher than its max-height.


fun ControlManager.popover(anchor: Vector2, vararg classes: String, side: PopoverSide = PopoverSide.BELOW, dismissable: Boolean = true, group: String? = null, focus: Boolean = false, init: Div.() -> Unit): Popover(source)

a popover next to anchor, a point of the window, see the popover with an anchor that moves


fun ControlManager.popover(anchor: Element, vararg classes: String, side: PopoverSide = PopoverSide.BELOW, dismissable: Boolean = true, group: String? = null, focus: Boolean = false, init: Div.() -> Unit): Popover(source)

a popover next to anchor, which it follows, and hidden while the element is not in the panel; see the popover with an anchor that moves