blockly > utils > aria > setRole
utils.aria.setRole() function
Updates the specific role for the specified element.
Signature:
export declare function setRole(element: Element, roleName: Role | null): void;
Parameters
Parameter | Type | Description |
|---|---|---|
element | Element | The element whose ARIA role should be changed. |
roleName | Role | null | The new role for the specified element, or null if its role should be cleared. |
Returns:
void