docs » cp.ui.StaticText
Static Text Module.
- Functions - API calls offered directly by the extension
- matches
- Fields - Variables which can only be accessed from an object returned by a constructor
- value
- Methods - API calls which can only be made on an object returned by a constructor
- clear
- loadLayout
- saveLayout
- StaticText
| Signature | cp.ui.StaticText.matches(element) -> boolean |
|---|---|
| Type | Function |
| Description | Checks if the element is a Static Text element. |
| Parameters |
|
| Returns |
|
| Signature | cp.ui.StaticText.value <cp.prop: anything> |
|---|---|
| Type | Field |
| Description | The current value of the text field. |
| Signature | cp.ui.StaticText:clear() -> self |
|---|---|
| Type | Method |
| Description | Clears the value of a Static Text box. |
| Parameters |
|
| Returns |
|
| Signature | cp.ui.StaticText:loadLayout(layout) -> none |
|---|---|
| Type | Method |
| Description | Loads a Static Text layout. |
| Parameters |
|
| Returns |
|
| Signature | cp.ui.StaticText:saveLayout() -> table |
|---|---|
| Type | Method |
| Description | Saves the current Static Text layout to a table. |
| Parameters |
|
| Returns |
|
| Signature | cp.ui.StaticText(parent, uiFinder[, convertFn]) -> StaticText |
|---|---|
| Type | Method |
| Description | Creates a new StaticText. They have a parent and a finder function. |
| Parameters |
|
| Returns |
|