mirror of
https://github.com/danieladov/jellyfin-plugin-skin-manager.git
synced 2026-01-18 16:37:31 +01:00
20 lines
483 B
JavaScript
20 lines
483 B
JavaScript
class Control {
|
|
constructor({ label, description, value, default: defaultValue, css }) {
|
|
this.id = this.constructor.name + Math.random().toString(36).substring(7);
|
|
this.label = label;
|
|
this.value = value ?? defaultValue;
|
|
this.css = css;
|
|
this.description = description || '';
|
|
}
|
|
|
|
generateHTML() {
|
|
return "";
|
|
}
|
|
|
|
generateCSS() {
|
|
return this.css.replace("%value%", this.value);
|
|
}
|
|
}
|
|
|
|
window.Control = Control;
|