TooltipIcon#

Open this notebook in Jupyterlite | Download this notebook from GitHub (right-click to download).


import panel as pn

pn.extension()

The TooltipIcon is a tooltip indicator providing a Tooltip. The value will be the text inside of the tooltip.

Parameters:#

For details on other options for customizing the component see the layout and styling how-to guides.

  • value (str or bokeh.models.Tooltip): The text inside the tooltip.


The TooltipIcon indicator can be instantiated with either a string:

pn.widgets.TooltipIcon(value="This is a simple tooltip by using a string")

or as a bokeh.models.Tooltip:

from bokeh.models import Tooltip

pn.widgets.TooltipIcon(value=Tooltip(content="This is a tooltip using a bokeh.models.Tooltip", position="right"))

The TooltipIcon can be used to add more information to a widgets:

pn.Row(
    pn.widgets.Button(name="Click me!"), 
    pn.widgets.TooltipIcon(value="Nothing happens when you click the button!")
)

Open this notebook in Jupyterlite | Download this notebook from GitHub (right-click to download).