UNPKG

@kitten-science/kitten-scientists

Version:

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

30 lines 1.54 kB
import type { Setting } from "../../settings/Settings.js"; import { CollapsiblePanel, type CollapsiblePanelOptions } from "./CollapsiblePanel.js"; import type { LabelListItem } from "./LabelListItem.js"; import type { SettingListItem } from "./SettingListItem.js"; import type { UiComponent } from "./UiComponent.js"; export type SettingsPanelOptions<TListItem extends LabelListItem = LabelListItem> = ThisType<SettingsPanel> & CollapsiblePanelOptions & { readonly settingItem?: TListItem; }; export declare class SettingsPanel<TSetting extends Setting = Setting, TListItem extends LabelListItem = LabelListItem> extends CollapsiblePanel implements SettingListItem { readonly options: SettingsPanelOptions<TListItem>; readonly setting: TSetting; readonly settingItem: TListItem; get isExpanded(): boolean; get elementLabel(): JQuery<HTMLElement>; get readOnly(): boolean; set readOnly(_value: boolean); check(): Promise<void>; uncheck(): Promise<void>; /** * Constructs a settings panel that is used to contain a major section of the UI. * * @param host - A reference to the host. * @param settingItem - The UI element to be placed in the head of the panel. * @param setting - An setting for which this is the settings panel. * @param options - Options for this panel. */ constructor(parent: UiComponent, setting: TSetting, settingItem: TListItem, options?: SettingsPanelOptions<TListItem>); toString(): string; } //# sourceMappingURL=SettingsPanel.d.ts.map