plushie/widget/tooltip

Tooltip widget builder. First child is the target, second is tooltip content.

Types

pub opaque type Tooltip

Values

pub fn a11y(tt: Tooltip, a: a11y.A11y) -> Tooltip

Set accessibility properties for this widget.

pub fn build(tt: Tooltip) -> node.Node

Build the tooltip into a renderable Node.

pub fn delay(tt: Tooltip, d: Int) -> Tooltip

Set the delay in milliseconds.

pub fn extend(tt: Tooltip, children: List(node.Node)) -> Tooltip

Add multiple child nodes.

pub fn gap(tt: Tooltip, g: Float) -> Tooltip

Set the gap between elements.

pub fn new(id: String, tip: String) -> Tooltip

Create a new tooltip builder.

pub fn padding(tt: Tooltip, p: padding.Padding) -> Tooltip

Set the padding.

pub fn position(tt: Tooltip, p: position.Position) -> Tooltip

Set the position.

pub fn push(tt: Tooltip, child: node.Node) -> Tooltip

Add a child node.

pub fn snap_within_viewport(
  tt: Tooltip,
  enabled: Bool,
) -> Tooltip

Set whether the tooltip snaps to the viewport.

pub fn style(tt: Tooltip, s: String) -> Tooltip

Set the style.

Search Document