cyp/app/js/elements/back.js

18 lines
326 B
JavaScript
Raw Normal View History

2020-03-13 06:03:26 +08:00
import Item from "../item.js";
import * as html from "../html.js";
export default class Back extends Item {
constructor(title) {
super();
this._title = title;
}
2020-03-15 03:33:41 +08:00
2020-03-13 06:03:26 +08:00
connectedCallback() {
this.appendChild(html.icon("keyboard-backspace"));
this._buildTitle(this._title);
}
}
customElements.define("cyp-back", Back);