2020-03-10 05:24:31 +08:00
|
|
|
import * as html from "../html.js";
|
2020-03-12 05:46:28 +08:00
|
|
|
import Item from "../item.js";
|
2020-03-10 05:24:31 +08:00
|
|
|
|
|
|
|
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);
|