Javascript: TXTextControl.ActivationState Enumeration
Description
The current activation state. It can be activated, deactivated or disabled.
Members
| Member | Description |
|---|---|
| Activated | The control is activated, which means that it has the keyboard input focus. |
| Deactivated | The control is deactivated, which means that it has not the keyboard input focus. |
| Disabled | The control is disabled, which means that it cannot get the keyboard input focus. |
Examples
The following example uses TXTextControl.ActivationState.Activated (the control is activated, which means that it has the keyboard input focus.) in a document-editing workflow.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
TXTextControl.setActivationState(
TXTextControl.ActivationState.Activated,
function() {
console.log("set activation state completed.");
},
onTxError
);