2020-03-10 05:24:31 +08:00
|
|
|
import * as html from "../html.js";
|
|
|
|
import { Item } from "../component.js";
|
|
|
|
|
|
|
|
export default class Playlist extends Item {
|
|
|
|
constructor(name) {
|
|
|
|
super();
|
|
|
|
this.name = name;
|
|
|
|
}
|
|
|
|
|
|
|
|
connectedCallback() {
|
2020-03-11 05:11:36 +08:00
|
|
|
html.icon("playlist-music", this);
|
|
|
|
this._buildTitle(this.name);
|
2020-03-10 05:24:31 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
customElements.define("cyp-playlist", Playlist);
|