I’m moving from Dash Table to Dash AG Grid. I’d like to have tooltips on my table cells and was following this page: Tooltips | Dash for Python Documentation | Plotly
The examples on that page don’t have any tooltips and I also can’t get tooltips working in my test case. Is there something wrong with Tooltips or a bug? This is what my test/playground looks like:
columnDefs = [
{
"headerName": "Identification",
"children": [
{"field": "iata", "pinned": "left"},
{"field": "airport"},
],
},
{
"headerName": "Location",
"children": [
{
"field": "city",
"tooltipField": "testing here",
"headerTooltip": "my header here",
},
{"field": "state"},
{"field": "country"},
],
},
{
"headerName": "Coordinates",
"children": [
{"field": "lat"},
{"field": "lon"},
],
},
{
"headerName": "",
"children": [
{"field": "cnt"},
],
},
]
df = pd.read_csv(
"https://raw.githubusercontent.com/plotly/datasets/master/2011_february_us_airport_traffic.csv"
)
layout = html.Div(
[
dag.AgGrid(
id="get-started-example-basic",
rowData=df.to_dict("records"),
columnDefs=columnDefs,
)
]
)