Radio Button Module.
This represents an hs._asm.axuielement
with a AXRadioButton
role. It allows checking and modifying the checked
status like so:
myButton:checked() == true -- happens to be checked alreadymyButton:checked(false) == false -- update to unchecked.myButton.checked:toggle() == true -- toggled back to being checked.
You can also call instances of RadioButton
as a function, which will return the checked
status:
myButton() == true -- still truemyButton(false) == false -- now false
Functions - API calls offered directly by the extension
​matches​
Signature |
|
Type | Function |
Description | Checks if the provided |
Parameters | ​ |
Returns | ​ |
Signature |
|
Type | Field |
Description | Indicates if the checkbox is currently checked. |
Signature |
|
Type | Field |
Description | If |
Signature |
|
Type | Method |
Description | Returns the application object, via the |
Parameters | ​ |
Returns | ​ |
Signature |
|
Type | Method |
Description | Returns |
Parameters | ​ |
Returns |
|
Signature |
|
Type | Method |
Description | Creates a new RadioButton. |
Parameters | ​ |
Returns | ​ |
Signature |
|
Type | Method |
Description | The parent object. |
Parameters | ​ |
Returns | ​ |
Signature |
|
Type | Method |
Description | Attempts to press the button. May fail if the |
Parameters | ​ |
Returns | The |
Signature | `cp.ui.RadioButton:snapshot([path]) -> hs.image | nil` </span> |
Type | Method | ​ |
Description | Takes a snapshot of the UI in its current state as a PNG and returns it. | ​ |
Parameters | ​ | ​ |
Signature |
|
Type | Method |
Description | Toggles the |
Parameters | ​ |
Returns | ​ |
Signature | `cp.ui.RadioButton:UI() -> hs._asm.axuielement | nil` </span> |
Type | Method | ​ |
Description | Returns the | ​ |
Parameters | ​ | ​ |