Builder API
Creating a hierarchy of elements is often awkward and cumbersome when working with GWT Elemental. Even simple structures like
lead to a vast amount of Document.createElement()
and chained Node.appendChild()
calls. With Elemento, creating the above structure is as easy as
The class Elements
provides convenient methods to create the most common elements. It uses a fluent API to create and append elements on the fly. Take a look at the API documentation for more details.
References
When creating large hierarchies of elements, you often need to assign an element somewhere in the tree. Use an inline assignment together with element()
to create and assign the element in one go:
Last updated