Yeah, I’m not so sure about the use case myself...
Input:
UserInterface.model({ name: "children", method: UserInterface.appendChild, properties: { tagName: "div", className: "model", children: [ { tagName: "div", className: "child", textContent: "My first child" // and so on.. } ] } });
UserInterface.runModel("children", { parentNode: document.body });
Output:
<body> <div class="model"> <div class="child">My first child</div> </div> </body>