UNPKG

@kitten-science/kitten-scientists

Version:

Add-on for the wonderful incremental browser game: https://kittensgame.com/web/

24 lines 1.08 kB
import { CollapsiblePanel } from "./CollapsiblePanel.js"; import { Container } from "./Container.js"; import { LabelListItem } from "./LabelListItem.js"; import stylesLabelListItem from "./LabelListItem.module.css"; import stylesSettingListItem from "./SettingListItem.module.css"; export class IconSettingsPanel extends CollapsiblePanel { setting; /** * Constructs a settings panel that can have an icon. * * @param host A reference to the host. * @param label The label to put main checkbox of this section. * @param setting An setting for which this is the settings panel. * @param options Options for the panel. */ constructor(parent, label, setting, options) { super(parent, new LabelListItem(parent, label, { classes: [stylesSettingListItem.checked, stylesSettingListItem.setting], icon: options?.icon, }).addChildrenHead([new Container(parent, { classes: [stylesLabelListItem.fillSpace] })]), options); this.setting = setting; } } //# sourceMappingURL=IconSettingsPanel.js.map