@kitten-science/kitten-scientists
Version:
Add-on for the wonderful incremental browser game: https://kittensgame.com/web/
24 lines • 1.15 kB
TypeScript
import type { Setting } from "../../settings/Settings.js";
import { CollapsiblePanel, type CollapsiblePanelOptions } from "./CollapsiblePanel.js";
import { type LabelListItemOptions } from "./LabelListItem.js";
import type { UiComponent } from "./UiComponent.js";
export type IconSettingsPanelOptions = ThisType<IconSettingsPanel> & LabelListItemOptions & CollapsiblePanelOptions & {
/**
* When set to an SVG path, will be used as an icon on the panel.
*/
readonly icon: string;
};
export declare class IconSettingsPanel<TSetting extends Setting = Setting> extends CollapsiblePanel {
readonly options: IconSettingsPanelOptions;
readonly setting: TSetting;
/**
* 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: UiComponent, label: string, setting: TSetting, options?: IconSettingsPanelOptions);
}
//# sourceMappingURL=IconSettingsPanel.d.ts.map