cyp/app/js/elements/yt-result.js
2020-03-16 22:57:13 +01:00

19 lines
343 B
JavaScript

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);