# Javascript: TableOfContentsCollectionAddParams.title Property

> Optional. The title for the table of contents.

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 29.0
- **Path:** DS Server > Reference > JavaScript API > Javascript: TableOfContentsCollectionAddParams.title Property
- **165 words**
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/tableofcontentscollectionaddparams/title-property/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/tableofcontentscollectionaddparams/title-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/tableofcontentscollectionaddparams/title-property/llms-full.txt

---

### Description

Optional. The title for the table of contents.

### Syntax

```javascript
<string> TableOfContentsCollectionAddParams.title
```

### Examples

The following example demonstrates `TableOfContentsCollectionAddParams.title` in a practical document-editing workflow. Optional. The title for the table of contents.

```javascript
function inspectTitle(tableOfContentsCollectionAddParams) {
    const title = tableOfContentsCollectionAddParams.title;
    console.log("title:", title);
}
```

---

## Nearby

- **Previous:** [Javascript: TableOfContentsCollectionAddParams.minimumStructureLevel Property](https://docs.textcontrol.com/ds-server/reference/javascript/tableofcontentscollectionaddparams/minimumstructurelevel-property/llms-full.txt)
- **Next:** [TableOfContentsEventArgs Object](https://docs.textcontrol.com/ds-server/reference/javascript/tableofcontentseventargs/llms-full.txt)
