Javascript: TextViewGeneratorColors.getHeaderFooterLabelColor Method
Description
Gets the display color for the label showing which header or footer is activated.
Syntax
<void> TextViewGeneratorColors.getHeaderFooterLabelColor(<RequestStringCallback> callback, [<ErrorCallback> errorCallback])Parameters
| Parameter | Description |
|---|---|
| callback | Receives the color for the label showing which header or footer is activated. |
| errorCallback | Optional. Is called when the operation failed with an error. |
Examples
The following example demonstrates TextViewGeneratorColors.getHeaderFooterLabelColor in a practical document-editing workflow. It gets 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.getHeaderFooterLabelColor(
function(result) {
console.log("get header footer label color result:", result);
},
onTxError
);