Javascript: TextViewGeneratorColors.setDarkShadowColor Method
Description
Sets the display color for the shadow at the right and the bottom edge of the pages.
Syntax
<void> TextViewGeneratorColors.setDarkShadowColor(<string> color, [<EmptyRequestCallback> callback], [<ErrorCallback> errorCallback])Parameters
| Parameter | Description |
|---|---|
| color | The display color for the shadow. |
| 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.setDarkShadowColor in a practical document-editing workflow. It sets the display color for the shadow at the right and the bottom edge of the pages.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
TXTextControl.displayColors.setDarkShadowColor(
"#ffd54f",
function() {
console.log("set dark shadow color completed.");
},
onTxError
);