DS Server

Javascript: TextViewGeneratorColors.getLightShadowColor Method

Method|Introduced in 28.0

Description

Gets the display color for the shadow at the left and the top edge of the pages.

Syntax

<void> TextViewGeneratorColors.getLightShadowColor(<RequestStringCallback> callback, [<ErrorCallback> errorCallback])

Parameters

ParameterDescription
callback

Receives the color for the shadow at the left and the top edge of the pages.

errorCallback

Optional. Is called when the operation failed with an error.

Examples

The following example demonstrates TextViewGeneratorColors.getLightShadowColor in a practical document-editing workflow. It gets the display color for the shadow at the left and the top edge of the pages.

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

TXTextControl.displayColors.getLightShadowColor(
    function(result) {
        console.log("get light shadow color result:", result);
    },
    onTxError
);