Get element children
element.getChildren()
Get child elements from a parent element in the element hierarchy.
You can also check the read-only children property to see if an element can have children.
Having this property enables methods related to children, such as element.append(), element.prepend(), element.after(), and element.before().
Syntax
Returns
Promise<Array<AnyElement>>
A Promise that resolves to an array of AnyElement objects.
AnyElement represents the various element types available in a Webflow project. See a full list of supported element types in our Designer Extension type definitions.
Example
Designer Ability
Checks for authorization only