-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
Description
I implemented tooltips using the DataTable’s tooltip_data feature.
Initially, I explored using dbc.Tooltip component for greater flexibility. However, dynamically adding a tooltip to each row/column element would require individual element IDs to be passed to the "target" parameter of dbc.Tooltip. The key advantage of dbc.Tooltip is its flexibility, allowing us to embed complex content and enable user interaction, features not supported by the built-in DataTable tooltips (which are now in place).
After some investigation, I couldn’t find a straightforward way to achieve this, and it seems that DataTable doesn't support such dynamic elements (without embedding some Javascript on the client side).
Features to look for:
- Squeeze long tooltips
- Include hyperlinks
- Include plots
- Make tooltips persistent, allowing the user to copy their text. Using something like
dbc.Tooltipwould solve the issue. - Make the tooltips' position consistent across multiple-page tables. Now the display position of tooltips for page 2+ is different from the position of the tooltips on the first page.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Todo