Javascript: TextViewGeneratorColors.setHeaderFooterLabelColor Method
Description
Sets the display color for the label showing which header or footer is activated.
Syntax
<void> TextViewGeneratorColors.setHeaderFooterLabelColor(<string> color, [<EmptyRequestCallback> callback], [<ErrorCallback> errorCallback])Parameters
| Parameter | Description |
|---|---|
| color | The display color for the label. |
| 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.setHeaderFooterLabelColor in a practical document-editing workflow. It sets the display color for the label showing which header or footer is activated.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
TXTextControl.displayColors.setHeaderFooterLabelColor(
"#ffd54f",
function() {
console.log("set header footer label color completed.");
},
onTxError
);