DS Server

RequestJustificationCallback Function

Function

Description

Callback function for requests expecting a Justification value.

Syntax

function(<Justification> justification)

Examples

The following example demonstrates RequestJustificationCallback in a practical document-editing workflow. Callback function for requests expecting a Justification value.

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

function requestJustificationCallback(justification) {
    console.log("justification:", justification);
}

TXTextControl.paragraphFormat.getJustification(requestJustificationCallback, onTxError);