Javascript: TableOfContents.getTitle Method
Description
Gets a title for the table of contents.
Syntax
<void> TableOfContents.getTitle(<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.getTitle in a practical document-editing workflow. It gets a title for the table of contents.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
function inspectTitle(tableOfContents) {
tableOfContents.getTitle(
function(result) {
console.log("get title result:", result);
},
onTxError
);
}