cyp/app/js/elements/back.js

17 lines
325 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;
}
connectedCallback() {
this.appendChild(html.icon("keyboard-backspace"));
this._buildTitle(this._title);
}
}
customElements.define("cyp-back", Back);