Skip to content

NodeHandle::tooltip(text), matching the owned widgets #69

Closed

Description

@samitbasu

Friction from the reference shell's migration to #66 (v0.1.0-m4c9). Every owned widget chain has .tooltip(text), but NodeHandle doesn't. Naming a hand-built node on hover reads:

b.span(Part::Crumb, tw, "…").on_response(|_app, r| { r.clone().on_hover_text("…"); });

The clone() is there because egui's on_hover_text takes the Response by value.

Proposal

NodeHandle::tooltip(text: impl Into<WidgetText>) -> Self, with the owned widgets' signature and behaviour. Share the implementation with them: the owned chains keep a Tip and show it in described(..) in src/owned/mod.rs, so the handle should call the same helper, not a second copy. It composes with the other handlers like any .draw.

Test: hovering a span with .tooltip(..) shows the tooltip text (egui_kittest query), as the owned widgets' tooltip tests do.

Activity

  1. added a commit that references this issue on Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions