4 ms·
Yeah, I’m not so sure about the use case myself... Input: UserInterface.model({ name: "children", method: UserInterface.appendChild, properties: { tagNam
by jwilber 6y ago
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>
- zeptonix 6y agoI think I'd have about three "UserInterface"'s in me before going crazy over why they didn't just name it "UI"
- thoughtsunifica 6y agoI think you have a great point, how about code snippets or renaming the global object in your index.html or application entry point? Thanks for looking at it, I appreciate.