This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Here is the deal... I had a bad time having fun writing my DOM elements before showing them up... | |
* Bu, be sincere, its a pain having to copy and paste, even more when you have to configure step by step and the code becaming horible to read... | |
* Anyway, that was my forst idea of trying to make these configurations more declarative... | |
*/ | |
_createElement({ tag, classList, attribute }) { | |
const element = document.createElement(tag); | |
if (classList && Array.isArray(classList)) { | |
element.classList.add(...classList); |