Disclosure Triangle UI Module.
This represents an
AXDisclosureTrianglerole. It allows checking and modifying the
openedstatus 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
DisclosureTriangleas a function, which will return the
myButton() == true -- still true
myButton(false) == false -- now false
- Functions - API calls offered directly by the extension
- Constructors - API calls which return an object, typically one that offers API methods
- Fields - Variables which can only be accessed from an object returned by a constructor
- Methods - API calls which can only be made on an object returned by a constructor