new TogglePattern()
The UIA Pro Toggle pattern.
Methods
getToggleState() → {Promise.<CheckedState>}
Returns the toggle state of the object.
Possible values: CheckedState
Returns:
a promise that is fulfilled with the state of the object.
- Type
- Promise.<CheckedState>
toggle() → {Promise.<void>}
Cycles through the toggle states of an object.
Returns:
a promise that is fulfilled when the toggle operation ends.
- Type
- Promise.<void>