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