Javascript: TXTextControl.TextFieldPosition Enumeration
Description
Specifies special text input positions at the beginning and the end of a text field.
Members
| Member | Description |
|---|---|
| InsideTextField | The specified position is inside the field. |
| OutsideTextField | The specified position is outside the field. |
| InsideNextTextField | The specified position is inside the next field. This member is only possible, if there are two following text fields without any character bewteen the fields. In this case InsideTextField is in the first field, OutsideTextField is between the fields and InsideNextTextField is in the second field. |
Examples
The following example uses TXTextControl.TextFieldPosition.InsideTextField (the specified position is inside the field.) in a document-editing workflow.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
TXTextControl.setInputPositionByTextPosition(
-1,
TXTextControl.TextFieldPosition.InsideTextField,
function() {
console.log("set input position by text position completed.");
},
onTxError
);