docs » cp.ui.Menu
UI for AXMenus.
- Functions - API calls offered directly by the extension
- matches
- Constructors - API calls which return an object, typically one that offers API methods
- Menu
- Methods - API calls which can only be made on an object returned by a constructor
- cancel
- doSelectItem
- doSelectValue
Signature | cp.ui.Menu.matches(element) -> boolean |
---|---|
Type | Function |
Description | Checks to see if an element matches what we think it should be. |
Parameters |
|
Returns |
|
Signature | cp.ui.Menu(parent, uiFinder) -> Menu |
---|---|
Type | Constructor |
Description | Creates a new Menu instance. |
Parameters |
|
Returns |
|
Signature | cp.ui.Menu:cancel() -> self |
---|---|
Type | Method |
Description | Closes a menu. |
Parameters |
|
Returns |
|
Signature | cp.ui.Menu:doSelectItem(index) -> cp.rx.go.Statement |
---|---|
Type | Method |
Description | A Statement that will select an item on the MenuButton by index. |
Parameters |
|
Returns |
|
Signature | cp.ui.Menu:doSelectValue(pattern[, altPattern]) -> cp.rx.go.Statement |
---|---|
Type | Method |
Description | A Statement that will select an item on the Menu by value. |
Parameters |
|
Returns |
|