Heading Element
The Heading element represents an element within the Webflow Designer. The following methods are specific to Heading elements.
Properties
Methods
element.getHeadingLevel()
Retrieves the heading level of a heading element.
Syntax
Returns
Promis<level
>: Number - 1 | 2 | 3 | 4 | 5 | 6
A Promise that resolves to the value of the heading level.
Example
Designer Ability
Checks for authorization only
element.setHeadingLevel(level)
Set the heading level of a heading element.
Syntax
Parameters
level
: Number - 1 | 2 | 3 | 4 | 5 | 6
Returns
Promise<null
>
A Promise that resolves to null