[Popover, Tooltip] Support one to many relationship #10401
Labels
1 - assigned
Issues that are assigned to a sprint and a team member.
ArcGIS Maps SDK for JavaScript
Issues logged by ArcGIS SDK for JavaScript team members.
calcite-components
Issues specific to the @esri/calcite-components package.
enhancement
Issues tied to a new feature or request.
estimate - 5
A few days of work, definitely requires updates to tests.
impact - p3 - not time sensitive
User set priority impact status of p3 - not time sensitive
needs milestone
Planning workflow - pending milestone assignment, has priority and/or estimate.
p - medium
Issue is non core or affecting less that 60% of people using the library
spike
Issues that need quick investigations for time estimations, prioritization, or a quick assessment.
Check existing issues
Description
Allow an array of reference elements to support a single tooltip or popover being associated with multiple elements.
This would handle the use case where a single tooltip is applicable to multiple reference elements. In the Maps SDK, we have a use case where each layer type has an icon and that icon has a tooltip. Currently, to achieve this, each icon needs its own tooltip even though there are only a few different tooltips.
Enhance tooltip and popover to support
referenceElement: HTMLElement | HTMLElement[]
Currently, if you have a lot of icons where you want the same tooltip to appear on hover, you have to create the same number of identical tooltips.
Acceptance Criteria
referenceElement property is enhanced to support an array
Relevant Info
No response
Which Component
popover, tooltip
Example Use Case
Priority impact
impact - p3 - not time sensitive
Calcite package
Esri team
ArcGIS Maps SDK for JavaScript
The text was updated successfully, but these errors were encountered: