Is there a way to display a tooltip? #2204
-
The idea would be to display some text in a tooltip when hovering a Label. Is there a way to achieve this in Rich/Textual? A concrete example is: we display a date in a human readable format (ex. 6 days ago) and when hovering the date label we get the full formatted date (ex. 2023-04-03 12:00:00Z) Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
I'm not sure this is currently possible with Textual - though I would love to be proven wrong! For starters, unless I'm missing something I can't find any sort of |
Beta Was this translation helpful? Give feedback.
-
FYI, tooltips are now part of the library! Just set |
Beta Was this translation helpful? Give feedback.
FYI, tooltips are now part of the library!
Just set
widget.tooltip
to a string or other renderable, and you can style theTooltip
widget it creates.