cyp/app/js/elements/yt-result.js

20 lines
343 B
JavaScript
Raw Normal View History

2020-03-17 05:57:13 +08:00
import Item from "../item.js";
import * as html from "../html.js";
export default class YtResult extends Item {
constructor(title) {
super();
this._title = title;
}
connectedCallback() {
this.appendChild(html.icon("magnify"));
this._buildTitle(this._title);
}
onClick() {}
}
customElements.define("cyp-yt-result", YtResult);