#cp.ui.TextField
Text Field Module.
#Submodules
#API Overview
Functions - API calls offered directly by the extension
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
#API Documentation
#Functions
Signature | cp.ui.TextField.matches(element[, subrole]) -> boolean |
Type | Function |
Description | Checks to see if an element matches what we think it should be. |
Parameters |
|
Returns |
|
Notes | None |
Examples | None |
Source | src/extensions/cp/ui/TextField.lua line 85 |
#Fields
Signature | cp.ui.TextField:convertingGet(getter) -> cp.ui.TextField.Builder |
Type | Field |
Description | Creates a Builder that will convert the result of the TextField:value() getter to a different type. |
Parameters |
|
Returns |
|
Notes |
|
Source | src/extensions/cp/ui/TextField.lua line 52 |
Signature | cp.ui.TextField:convertingSet(setter) -> cp.ui.TextField.Builder |
Type | Field |
Description | Creates a Builder that will convert the value before setting it in the TextField . |
Parameters |
|
Returns |
|
Notes |
|
Source | src/extensions/cp/ui/TextField.lua line 66 |
Signature | cp.ui.TextField.value <cp.prop: string> |
Type | Field |
Description | The current value of the text field. |
Notes | None |
Source | src/extensions/cp/ui/TextField.lua line 131 |
#Methods
Signature | cp.ui.TextField:clear() -> self |
Type | Method |
Description | Clears the value of a Text Field. |
Parameters |
|
Returns |
|
Notes | None |
Examples | None |
Source | src/extensions/cp/ui/TextField.lua line 204 |
Signature | cp.ui.TextField:doConfirm() -> cp.rx.go.Statement |
Type | Method |
Description | A Statement that will confirm the current text value. |
Parameters |
|
Returns |
|
Notes | None |
Examples | None |
Source | src/extensions/cp/ui/TextField.lua line 218 |
Signature | cp.ui.TextField:doFocus() -> cp.rx.go.Statement |
Type | Method |
Description | A Statement that will attempt to focus on the current TextField . |
Parameters |
|
Returns |
|
Notes | None |
Examples | None |
Source | src/extensions/cp/ui/TextField.lua line 237 |
Signature | cp.ui.TextField:forceFocus() |
Type | Method |
Description | Configures the TextField to force a focus on the field before editing. Some fields seem to require this to actually update the text value. |
Parameters |
|
Returns |
|
Notes | None |
Examples | None |
Source | src/extensions/cp/ui/TextField.lua line 163 |
Signature | cp.ui.TextField:getValue() -> string |
Type | Method |
Description | Gets the value of the Text Field. |
Parameters |
|
Returns |
|
Notes | None |
Examples | None |
Source | src/extensions/cp/ui/TextField.lua line 177 |
Signature | cp.ui.TextField:loadLayout(layout) -> none |
Type | Method |
Description | Loads a Text Field layout. |
Parameters |
|
Returns |
|
Notes | None |
Examples | None |
Source | src/extensions/cp/ui/TextField.lua line 271 |
Signature | cp.ui.TextField:saveLayout() -> table |
Type | Method |
Description | Saves the current Text Field layout to a table. |
Parameters |
|
Returns |
|
Notes | None |
Examples | None |
Source | src/extensions/cp/ui/TextField.lua line 256 |
Signature | cp.ui.TextField:setValue(value) -> self |
Type | Method |
Description | Sets the value of the Text Field. |
Parameters |
|
Returns |
|
Notes | None |
Examples | None |
Source | src/extensions/cp/ui/TextField.lua line 190 |
Signature | cp.ui.TextField(parent, uiFinder, getConvertFn, setConvertFn) -> TextField |
Type | Method |
Description | Creates a new TextField. They have a parent and a finder function. |
Parameters |
|
Returns |
|
Notes |
|
Examples | None |
Source | src/extensions/cp/ui/TextField.lua line 100 |