Javascript: TableOfContentsInfo.hasLinks Property
Description
Specifies whether each entry in the table of contents is a DocumentLink with a corresponding DocumentTarget.
Syntax
<boolean> TableOfContentsInfo.hasLinksExamples
The following example demonstrates TableOfContentsInfo.hasLinks in a practical document-editing workflow. It specifies whether each entry in the table of contents is a DocumentLink with a corresponding DocumentTarget.
function inspectHasLinks(tableOfContentsInfo) {
const hasLinks = tableOfContentsInfo.hasLinks;
console.log("has links:", hasLinks);
}