# Javascript: TableOfContentsCollectionAddParams.hasLinks Property

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

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 29.0
- **Path:** TX Text Control .NET Server > Reference > JavaScript API > Javascript: TableOfContentsCollectionAddParams.hasLinks Property
- **196 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tableofcontentscollectionaddparams/haslinks-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tableofcontentscollectionaddparams/haslinks-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tableofcontentscollectionaddparams/haslinks-property/llms-full.txt

---

### Description

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

### Syntax

```javascript
<boolean> TableOfContentsCollectionAddParams.hasLinks
```

### Examples

The following example demonstrates `TableOfContentsCollectionAddParams.hasLinks` in a practical document-editing workflow. Optional. Specifies whether each entry in the table of contents is a DocumentLink with a corresponding DocumentTarget.

```javascript
function inspectHasLinks(tableOfContentsCollectionAddParams) {
    const hasLinks = tableOfContentsCollectionAddParams.hasLinks;
    console.log("has links:", hasLinks);
}
```

---

## Nearby

- **Previous:** [TableOfContentsCollectionAddParams Object](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tableofcontentscollectionaddparams/llms-full.txt)
- **Next:** [Javascript: TableOfContentsCollectionAddParams.hasPageNumbers Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/tableofcontentscollectionaddparams/haspagenumbers-property/llms-full.txt)
