cyp/app/js/elements/back.js
2020-03-12 23:03:26 +01:00

16 lines
325 B
JavaScript

import Item from "../item.js";
import * as html from "../html.js";
export default class Back extends Item {
constructor(title) {
super();
this._title = title;
}
connectedCallback() {
this.appendChild(html.icon("keyboard-backspace"));
this._buildTitle(this._title);
}
}
customElements.define("cyp-back", Back);