blockly > bubbles > Bubble > setAriaLabelProvider
bubbles.Bubble.setAriaLabelProvider() method
Sets a custom ARIA label provider for this bubble, or null if it should be reset to use the default method.
Bubbles do not compute ARIA labels specifically to their implementation since they can be rather general-purpose. Instead, owners of the specific bubble instance (such as an icon) are responsible for defining custom label providers for their bubbles.
Note that calling this isn't sufficient for it to actually be used. recomputeAriaContext will likely also need to be called to actually apply the custom label to the bubble's focusable element.
Signature:
setAriaLabelProvider(provider: AriaLabelProvider | null): void;
Parameters
Parameter | Type | Description |
|---|---|---|
provider | AriaLabelProvider | null |
Returns:
void