Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve tooltips #35

Open
gcroci2 opened this issue Sep 27, 2024 · 0 comments
Open

Improve tooltips #35

gcroci2 opened this issue Sep 27, 2024 · 0 comments
Labels
dashboard enhancement New feature or request

Comments

@gcroci2
Copy link
Contributor

gcroci2 commented Sep 27, 2024

  • 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. 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).
  • 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. For example, now the tooltips can be displayed but will disappear when the user tries to select and copy text from it. Using something like dbc.Tooltip would solve the issue.
  • Another issue with the current tooltips, is that when the data table has multiple pages, the display position of tooltips for the page 2+ is different from the position of the tooltips in the first page.
@gcroci2 gcroci2 added this to dev Sep 27, 2024
@github-project-automation github-project-automation bot moved this to Backlog in dev Sep 27, 2024
@gcroci2 gcroci2 moved this from Backlog to Todo in dev Sep 27, 2024
@gcroci2 gcroci2 added the enhancement New feature or request label Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dashboard enhancement New feature or request
Projects
Status: Todo
Development

No branches or pull requests

1 participant