The Table of contents component allows users to display a document's table of contents.
- To customize the Expand all and Collapse all labels, update the
designedReaderToc.expandAllanddesignedReaderToc.collapseAllportal labels. See Customize interface messages. - It is also possible to get a document's table of contents in JSON format with the table of contents variable in Custom components.