DS Server

Javascript: TextViewGeneratorColors.setLightShadowColor Method

Method|Introduced in 28.0

Description

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

Syntax

<void> TextViewGeneratorColors.setLightShadowColor(<string> color, [<EmptyRequestCallback> callback], [<ErrorCallback> errorCallback])

Parameters

ParameterDescription
color

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

callback

Optional. Is called when the operation completed.

errorCallback

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

Examples

The following example demonstrates TextViewGeneratorColors.setLightShadowColor in a practical document-editing workflow. It sets 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.setLightShadowColor(
    "#ffd54f",
    function() {
        console.log("set light shadow color completed.");
    },
    onTxError
);