1# llimphi-widget-tooltip23Floating tooltip with anchor and clamping.
45Pure render: the widget receives the anchor (typically the bottom-centre of the
6element that triggers it), the viewport and the text, and returns an absolutely
7positioned `View<Msg>` to hang from `view_overlay`. The app is responsible for:
891. Detecting hover over the element through `View::on_pointer_enter` plus a
10 `Tween`/delay, so tooltips don't flicker as the pointer passes.
112. Storing the `Option<TooltipSpec>` in its model.
123. Returning it from `view_overlay`.
134. Closing it with `View::on_pointer_leave` over the same element.
1415No scrim is included — a tooltip is informative, not modal: clicks pass through
16to the main tree. (For interactive popovers use `llimphi-widget-modal` or the
17`context-menu`.)
1819---
2021Part of **llimphi** — see [llimphi](../../README.md).
README.md
llimphi-widget-tooltip
Floating tooltip with anchor and clamping.
Pure render: the widget receives the anchor (typically the bottom-centre of the
element that triggers it), the viewport and the text, and returns an absolutely
positioned View<Msg> to hang from view_overlay. The app is responsible for:
Detecting hover over the element through View::on_pointer_enter plus a
Tween/delay, so tooltips don't flicker as the pointer passes.
Storing the Option<TooltipSpec> in its model.
Returning it from view_overlay.
Closing it with View::on_pointer_leave over the same element.
No scrim is included — a tooltip is informative, not modal: clicks pass through
to the main tree. (For interactive popovers use llimphi-widget-modal or the
context-menu.)