Javascript: TextField.setDoubledInputPosition Method
Description
Gets whether a text field has a doubled input position in front of its first character and behind its last character.
Syntax
<void> TextField.setDoubledInputPosition(<boolean> doubledInputPosition, [<EmptyRequestCallback> callback], [<ErrorCallback> errorCallback])Parameters
| Parameter | Description |
|---|---|
| doubledInputPosition | Specifies whether a text field has a doubled input position in front of its first character and behind its last character. |
| callback | Optional. Is called when the operation completed. |
| errorCallback | Optional. Is called when the operation failed with an error. |
Examples
The following example demonstrates TextField.setDoubledInputPosition in a practical document-editing workflow. It gets whether a text field has a doubled input position in front of its first character and behind its last character.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
function configureDoubledInputPosition(textField) {
textField.setDoubledInputPosition(
true,
function() {
console.log("set doubled input position completed.");
},
onTxError
);
}