#
cp.ui.DisclosureTriangle
Disclosure Triangle UI Module.
This represents an hs.axuielement
with a AXDisclosureTriangle
role.
It allows checking and modifying the opened
status like so:
myButton:opened() == true -- happens to be opened already
myButton:opened(false) == false -- update to unopened.
myButton.opened:toggle() == true -- toggled back to being opened.
You can also call instances of DisclosureTriangle
as a function, which will return
the opened
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
DisclosureTriangle
Fields - Variables which can only be accessed from an object returned by a constructor
opened title
Methods - API calls which can only be made on an object returned by a constructor
click doClose doOpen doPress loadLayout press saveLayout toggle