Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
holoviz
GitHub Repository: holoviz/panel
Path: blob/main/examples/reference/indicators/TooltipIcon.ipynb
2011 views
Kernel: Unknown Kernel
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!") )