docs » cp.ui.Sheet
Sheet UI Module.
- Functions - API calls offered directly by the extension
- matches
- Constructors - API calls which return an object, typically one that offers API methods
- Sheet
- Fields - Variables which can only be accessed from an object returned by a constructor
- cancel
- default
- title
- Methods - API calls which can only be made on an object returned by a constructor
- containsText
- doCancel
- doDefault
- doHide
- doPress
- hide
- pressCancel
- pressDefault
Signature | cp.ui.Sheet.matches(element) -> boolean |
---|---|
Type | Function |
Description | Checks to see if an element matches what we think it should be. |
Parameters |
|
Returns |
|
Signature | cp.ui.Sheet(parent, uiFinder) -> Sheet |
---|---|
Type | Constructor |
Description | Creates a new Sheet instance. |
Parameters |
|
Returns |
|
Signature | cp.ui.Sheet.cancel <cp.ui.Button> |
---|---|
Type | Field |
Description | The cancel Button for the Sheet . |
Signature | cp.ui.Sheet.default <cp.ui.Button> |
---|---|
Type | Field |
Description | The default Button for the Sheet . |
Signature | cp.ui.Sheet.title <cp.prop: string> |
---|---|
Type | Field |
Description | Gets the title of the sheet. |
Signature | cp.ui.Sheet:containsText(value[, plain]) -> boolean |
---|---|
Type | Method |
Description | Checks if there are any child text elements containing the exact text or pattern, from beginning to end. |
Parameters |
|
Returns |
|
Signature | cp.ui.Sheet:doCancel() -> cp.rx.go.Statement <boolean> |
---|---|
Type | Method |
Description | Attempts to hide the Sheet (if visible) by pressing the Cancel button. |
Parameters |
|
Returns |
|
Signature | cp.ui.Sheet:doDefault() -> cp.rx.go.Statement <boolean> |
---|---|
Type | Method |
Description | Attempts to press the default Button. |
Parameters |
|
Returns |
|
Signature | cp.ui.Sheet:doHide() -> cp.rx.go.Statement <boolean> |
---|---|
Type | Method |
Description | Attempts to hide the Sheet (if visible) by pressing the Cancel button. |
Parameters |
|
Returns |
|
Signature | cp.ui.Sheet:doPress(buttonFromLeft) -> cp.rx.go.Statement <boolean> |
---|---|
Type | Method |
Description | Attempts to press the indicated button from left-to-right, if it can be found. |
Parameters |
|
Returns |
|
Signature | cp.ui.Sheet:hide() -> none |
---|---|
Type | Method |
Description | Hides the sheet by pressing the "Cancel" button, if it exists. |
Parameters |
|
Returns |
|
Signature | cp.ui.Sheet:pressCancel() -> self, boolean |
---|---|
Type | Method |
Description | Presses the Cancel button. |
Parameters |
|
Returns |
|
Signature | cp.ui.Sheet:pressDefault() -> self, boolean |
---|---|
Type | Method |
Description | Presses the Default button. |
Parameters |
|
Returns |
|