# Javascript: TextViewGeneratorColors.setLightShadowColor Method

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

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 28.0
- **Path:** DS Server > Reference > JavaScript API > Javascript: TextViewGeneratorColors.setLightShadowColor Method
- **358 words**
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/textviewgeneratorcolors/setlightshadowcolor-method/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/textviewgeneratorcolors/setlightshadowcolor-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/textviewgeneratorcolors/setlightshadowcolor-method/llms-full.txt

---

### Description

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

### Syntax

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

### Parameters

| Parameter | Description |
|---|---|
| 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.

```javascript
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
);
```

---

## Nearby

- **Previous:** [Javascript: TextViewGeneratorColors.setHeaderFooterLineColor Method](https://docs.textcontrol.com/ds-server/reference/javascript/textviewgeneratorcolors/setheaderfooterlinecolor-method/llms-full.txt)
- **Next:** [TextViewLocationChangedCallback Function](https://docs.textcontrol.com/ds-server/reference/javascript/textviewlocationchangedcallback/llms-full.txt)
