The frontend/UI server, written in JS using the MarkoJS library
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
249 B

6 years ago
  1. module.exports = class {
  2. onCreate(input) {
  3. this.state = {
  4. classes: ["menu-link", "color-menu", input.class],
  5. }
  6. this.state.classes.push(input.selected ? "selected" : "not-selected")
  7. }
  8. onClick() {
  9. this.emit("click")
  10. }
  11. }