Rich tooltips, mobile enabled/responsive #1069
Unanswered
mauritskorse
asked this question in
Feature Requests
Replies: 1 comment
-
I would love to see this implemented! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have been working on making the tooltips more advanced. It'd be great if there would be native support for some (or all) of the features I have added.
Aim / Requirements
The main aim was to have a wikipedia like tooltip that is shown and rendered based on the 'trigger' that is hovered or tapped.
It should:
Approach
I have tried a couple of approaches (combining the dialog and tooltip elements). But in the end I had to tinker a bit with the Flux javascript library as well. In the end I have chosen for a single popover element that renders either as tooltip or as flyout depending on pointer and screen orientation.
I have added a method to the custom flux element (richtooltip) that can register new triggers with various callbacks. The implementation of the delay allows for prefetching the new tooltips content before it is shown.
Result so far
The vids aren't very smooth, but it does give an idea:
Screen.Recording.2025-02-06.141051.mp4
Screen.Recording.2025-02-06.160702.mp4
Example implementation
Additional features
I have also added a next() and previous() method when the triggers are registered. This means you can add a button on a tooltip to open the next or previous tooltip. This is quite nice for interactive walk-throughs of you application.
Dynamic rendering
As this tooltip supports dynamic rendering, the same approach could be used for dynamic rendering modals or dropdowns for rows in large tables (#381)
Beta Was this translation helpful? Give feedback.
All reactions