DS Server

Javascript: TableOfContentsInfo.hasLinks Property

Property|Introduced in 29.0

Description

Specifies whether each entry in the table of contents is a DocumentLink with a corresponding DocumentTarget.

Syntax

<boolean> TableOfContentsInfo.hasLinks

Examples

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);
}