#
cp.ui.RadioButton
Radio Button Module.
This represents an hs.axuielement
with a AXRadioButton
role.
It allows checking and modifying the checked
status like so:
myButton:checked() == true -- happens to be checked already
myButton: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 true
myButton(false) == false -- now false
#
API Overview
Functions - API calls offered directly by the extension
matches
Fields - Variables which can only be accessed from an object returned by a constructor
checked
Methods - API calls which can only be made on an object returned by a constructor
doCheck doLayout doPress doToggle doUncheck loadLayout press RadioButton saveLayout toggle