Set selected element
webflow.setSelectedElement()
Set the selected element on the current page, or on the current component when the Designer is entered into a component.
The returned element object can be further queried using element-level properties (e.g. type, styles) and methods (e.g. getChildren()
)
Syntax
Parameters
- Element: AnyElement - Any element that is on the current canvas, or is with the current component when the designer is entered into a component.
Returns
Promise<AnyElement>
A Promise that resolves to AnyElement
.
App Mode
Checks for authorization only