blockly > utils > aria > getState
utils.aria.getState() function
Returns a string representation of the specified state for the specified element, or null if it's not defined or specified.
Note that an explicit set state of 'null' will return the 'null' string, not the value null.
Signature:
export declare function getState(element: Element, stateName: State): string | null;
Parameters
Parameter | Type | Description |
|---|---|---|
element | Element | The element whose state is being retrieved. |
stateName | State | The state to retrieve. |
Returns:
string | null
The string representation of the requested state for the specified element, or null if not defined.