simple-marko-ui
Version:
A simple library of UI components for MarkoJS.
23 lines (18 loc) • 452 B
JavaScript
const Base = require("./base.mixin");
class Component {
onCreate(input) {
this.state = {
icon: input.icon||"image",
showDialogue: false,
filter: ''
}
}
toggleIconDialogue() {
this.state.showDialogue = !this.state.showDialogue;
}
setFilter(event) {
this.state.filter = event.value;
}
};
Object.assign(Component.prototype, Base);
module.exports = Component;