Javascript: TableOfContents.getHighlightColor Method
Description
Gets the highlight color for the table of contents.
Syntax
<void> TableOfContents.getHighlightColor(<RequestStringCallback> callback, [<ErrorCallback> errorCallback])Parameters
| Parameter | Description |
|---|---|
| callback | Receives the property value. |
| errorCallback | Optional. Is called when the operation failed with an error. |
Examples
The following example demonstrates TableOfContents.getHighlightColor in a practical document-editing workflow. It gets the highlight color for the table of contents.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
function inspectHighlightColor(tableOfContents) {
tableOfContents.getHighlightColor(
function(result) {
console.log("get highlight color result:", result);
},
onTxError
);
}