Files
jellyfin-plugin-skin-manager/Jellyfin.Plugin.SkinManager/Configuration/controls/Control.js
Daniel 7bdf39f0fa V.3
2025-12-22 00:07:16 +01:00

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;