DS Server

Javascript: TXTextControl.ActivationState Enumeration

Enumeration|Introduced in 28.0

Description

The current activation state. It can be activated, deactivated or disabled.

Members

MemberDescription
ActivatedThe control is activated, which means that it has the keyboard input focus.
DeactivatedThe control is deactivated, which means that it has not the keyboard input focus.
DisabledThe 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
);