Pop Up Button Module.
Functions - API calls offered directly by the extension
​matches​
Constructors - API calls which return an object, typically one that offers API methods
​new​
Methods - API calls which can only be made on an object returned by a constructor
​getTitle​
​getValue​
​isEnabled​
​loadLayout​
​parent​
​press​
​saveLayout​
​selectItem​
​selectItemMatching​
​setValue​
​show​
​snapshot​
Signature |
|
Type | Function |
Description | Checks to see if an element matches what we think it should be. |
Parameters | ​ |
Returns | ​ |
Signature |
|
Type | Constructor |
Description | Creates a new MenuButton. |
Parameters | ​ |
Signature | `cp.ui.MenuButton:getTitle() -> string | nil` </span> |
Type | Method | ​ |
Description | Gets the | ​ |
Parameters | ​ | ​ |
Returns | ​ | ​ |
Signature | `cp.ui.MenuButton:getValue() -> string | nil` </span> |
Type | Method | ​ |
Description | Gets the | ​ |
Parameters | ​ | ​ |
Returns | ​ | ​ |
Signature |
|
Type | Method |
Description | Is the |
Parameters | ​ |
Returns | ​ |
Signature |
|
Type | Method |
Description | Loads a |
Parameters | ​ |
Returns | ​ |
Signature |
|
Type | Method |
Description | Returns the parent object. |
Parameters | ​ |
Returns | ​ |
Signature |
|
Type | Method |
Description | Presses the MenuButton. |
Parameters | ​ |
Returns | ​ |
Signature |
|
Type | Method |
Description | Saves the current |
Parameters | ​ |
Returns | ​ |
Signature |
|
Type | Method |
Description | Select an item on the |
Parameters | ​ |
Returns | ​ |
Signature |
|
Type | Method |
Description | Select an item on the |
Parameters | ​ |
Returns | ​ |
Signature |
|
Type | Method |
Description | Sets the |
Parameters | ​ |
Returns | ​ |
Signature |
|
Type | Method |
Description | Show's the MenuButton. |
Parameters | ​ |
Returns | ​ |
Signature | `cp.ui.MenuButton: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 | ​ | ​ |