Skip to main content

blockly > utils > aria > State

utils.aria.State enum

A possible ARIA attribute state for a Blockly DOM element. See also setState() and getState().

This should be used instead of directly setting aria-* attributes on elements.

Signature:

export declare enum State

Enumeration Members

Member

Value

Description

ACTIVEDESCENDANT

"activedescendant"

See https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-activedescendant.

Value: ID of a DOM element.

ATOMIC

"atomic"

See https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-atomic.

Value: one of {true, false}.

CHECKED

"checked"

See https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-checked.

Value: one of {true, false, mixed, undefined}.

CONTROLS

"controls"

See https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-controls.

Value: an array of element IDs.

DISABLED

"disabled"

See https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-disabled.

Value: one of {true, false}.

EXPANDED

"expanded"

See https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-expanded.

Value: one of {true, false, undefined}.

HASPOPUP

"haspopup"

See https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-haspopup.

Value: one of {true, false, menu, listbox, tree, grid, dialog}.

HIDDEN

"hidden"

See https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-hidden.

Value: one of {true, false,undefined}.

INVALID

"invalid"

See https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-invalid.

Value: one of {true, false, grammar, spelling}.

LABEL

"label"

See https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-label.

Value: a string.

LABELLEDBY

"labelledby"

See https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-labelledby.

Value: an array of element IDs.

LEVEL

"level"

See https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-level.

Value: an integer.

LIVE

"live"

See https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-live.

Value: one of {polite, assertive, off}.

OWNS

"owns"

See https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-owns

Value: a space-separated list of element IDs that are owned by the current element.

ROLEDESCRIPTION

"roledescription"

See https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-roledescription.

Value: a string.

SELECTED

"selected"

See https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-selected.

Value:one of {true, false, undefined}.

VALUEMAX

"valuemax"

See https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-valuemax.

Value: a number representing the maximum allowed value for a range widget.

VALUEMIN

"valuemin"

See https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-valuemin.

Value: a number representing the minimum allowed value for a range widget.