The Heading Calculator subcomponent is used by the Table of Contents Model Builder to calculate and return the level of heading elements.

Do not use this component directly. The information on this page should be use when customizing Table of Contents.

See Also
Table of Contents Model Builder

Table of Contents API

Supported Events

none

Methods

none

Options

levels
An array of heading elements presented in the order from the first level to the last level.

Options

back to top

levels

Description

An array of heading elements presented in the order from the first level to the last level. The level of the heading element "H1" is 1, "H2" is 2, and so on.

Default

["H1", "H2", "H3", "H4", "H5", "H6"]

Example

{
    levels: []
}