DS Server

Javascript: TXTextControl.TextType Enumeration

Enumeration

Description

Specifies how a text is represented and interpreted.

Members

MemberDescription
TextThe text type is text and it is displayed as it is.
NumberThe text is interpreted as a number.

Examples

The following example uses TXTextControl.TextType.Text (the text type is text and it is displayed as it is.) in a document-editing workflow.

function onTxError(error) {
    console.error("TX Text Control error:", error.msg);
    error.handled = true;
}

function applyTextType(tableCellFormat) {
    tableCellFormat.setTextType(
        TXTextControl.TextType.Text,
        function() {
            console.log("set text type completed.");
        },
        onTxError
    );
}