cyp/app/js/elements/playlist.js
2020-03-10 10:07:30 +01:00

17 lines
332 B
JavaScript

import * as html from "../html.js";
import { Item } from "../component.js";
export default class Playlist extends Item {
constructor(name) {
super();
this.name = name;
}
connectedCallback() {
html.icon("playlist-music", this)
html.node("h2", {}, this.name, this);
}
}
customElements.define("cyp-playlist", Playlist);