#
cp.ui.CheckBox
Check Box UI Module.
This represents an hs.axuielement
with a AXCheckBox
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 CheckBox
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
Constructors - API calls which return an object, typically one that offers API methods
CheckBox
Fields - Variables which can only be accessed from an object returned by a constructor
checked title
Methods - API calls which can only be made on an object returned by a constructor
click doCheck doPress doUncheck loadLayout press saveLayout toggle