Skip to content

Improve tooltips #35

@gcroci2

Description

@gcroci2

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.Tooltip would 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

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions