TooltipAriaMixin

external interface TooltipAriaMixin

A mixin providing linking of the tooltip content to the tooltip target elements using the aria-describedby or aria-labelledby attribute.

Targets in the same root as the tooltip are linked by the content element ID. ID references only resolve within a single tree scope, so targets in other roots are linked with ARIA element references instead.

Inheritors

Properties

Link copied to clipboard
abstract var ariaLinkMode: String

Controls which ARIA attribute is used to link the target element(s) with the tooltip content. Supported values:

Link copied to clipboard
abstract var ariaTarget: JsAny

Element used to link with the ARIA attribute controlled by the ariaLinkMode property. Supports array of multiple elements. When not set, defaults to target.