Select to view content in your preferred language

tooltip

178
2
Jump to solution
02-06-2025 04:58 AM
AlexWie
Occasional Contributor

Hello, I want to customize the tooltip for the arcgis-expand button. Unfortunately, it doesn't work with calcite-tooltip. Does anyone have an idea?

js_api3.png

      <arcgis-expand position="top-right" mode="floating" id="Legende">
        <calcite-tooltip label="Legende" reference-element="Legende">
          <span>Legende</span>
      </calcite-tooltip>
        <arcgis-legend/>
      </arcgis-expand>

 

0 Kudos
1 Solution

Accepted Solutions
AnneFitz
Esri Regular Contributor

You need to use the attribute name `expand-tooltip` instead of the property name, like this

<arcgis-expand position="top-right" expand-tooltip="My custom tooltip">

You can read more about Component attributes and properties on this guide page: https://developers.arcgis.com/javascript/latest/programming-patterns/#attributes-and-properties

 

View solution in original post

2 Replies
AlexWie
Occasional Contributor

That doesn't work either.

<arcgis-expand position="top-right" mode="floating" expandTooltip="Legende">
  <arcgis-legend/>
</arcgis-expand>
0 Kudos
AnneFitz
Esri Regular Contributor

You need to use the attribute name `expand-tooltip` instead of the property name, like this

<arcgis-expand position="top-right" expand-tooltip="My custom tooltip">

You can read more about Component attributes and properties on this guide page: https://developers.arcgis.com/javascript/latest/programming-patterns/#attributes-and-properties