Component that renders a table of content to help navigate the page content.
Default table of contents without any configuration.
The default list type is bulleted, default start level is h1 and default stop level is h6.
- sling:resourceType: core-components-examples/components/tableofcontents
Configuring the list type to numbered.
- sling:resourceType: core-components-examples/components/tableofcontents
- listType: numbered
Configuring the start level to h2.
- startLevel: h2
- sling:resourceType: core-components-examples/components/tableofcontents
- listType: numbered
Configuring the stop level to h2.
- startLevel: h2
- sling:resourceType: core-components-examples/components/tableofcontents
- listType: numbered
- stopLevel: h2
Configuring the id to sample-id.
- startLevel: h2
- id: sample-id
- sling:resourceType: core-components-examples/components/tableofcontents
- listType: numbered
- stopLevel: h2