Skip to main content

Designer

Designer instance accepts nodes and elements arrays. It adds elements to the page and displays the code output.

<div id="#mount"></div>
new Des()
.nodes(nodes)
.add(els)
.set({
mount: "#mount"
});

If you want to hide the code, you can set code property to false inside set method:

... .set({
code: false,
mount: "#mount"
});