Element properties & methods
Elements in Webflow have properties that determine what functionality they support. These properties are boolean flags that indicate whether an element can have certain features like children, styles, or text content. Each property unlocks a set of related methods that you can use to manipulate the element.
Core element properties
All elements have a set of core properties that determine what actions you can perform on them:
Checking element properties
Before using property-based methods, you should always check if the element has the required property:
Property-based methods
Each element property unlocks specific functionality that you can use in your Designer Extension:
Methods for adding, retrieving, and managing child elements.
Methods for applying and managing styles on elements.
Methods for setting and manipulating text content.
Methods for working with custom HTML attributes.
Methods for connecting elements with external apps.
Best practices
-
Always check properties before using methods:
-
Combine property and type checks when needed:
-
Handle missing properties gracefully: