Bulk Add Elements
webflow.elementBuilder(webflow.elementPresets.DOM)
Creates the root element for a new element structure, which can then append DOM elements to its hierarchy. This method is optimized for bulk creation, particularly useful when dealing with complex hierarchical designs. Before placing the on the canvas, set the HTML Tag of the DOM element using the element.setTag()
method.
Limitations
DOM Elements: Currently, only DOM Elements can be created and inserted as root or child elements using this method.
Syntax
Parameters
- newElement: webflow.elementPresets.DOM> - The new element to be inserted into the hierarchy. This element is derived from the
webflow.elementPresets
object. Currently, only DOM elements can be inserted.
Returns
BuilderElement
A BuilderElement designed for creating and manipulating hierarchical structures.