UNPKG

willcore.ui

Version:

Simple, Fast And Powerful Client-Side HTML UI Framework.

18 lines (15 loc) 429 B
import { bindable } from "../binding/bindable.js"; class component extends bindable { constructor() { super({ function: 1 }, 0); this.initialDisplayState = null; } updateDOM(value) { if (value) { this.element.classList.add(this.propertyName); } else { this.element.classList.remove(this.propertyName); } } } export { component };