UNPKG

@kitten-science/kitten-scientists

Version:

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

30 lines 1.32 kB
import type { SettingLimited } from "../../settings/Settings.js"; import { LimitedButton } from "./buttons/LimitedButton.js"; import { SettingListItem, type SettingListItemOptions } from "./SettingListItem.js"; import type { UiComponent } from "./UiComponent.js"; export type SettingLimitedListItemOptions = ThisType<SettingLimitedListItem> & SettingListItemOptions & { /** * Is called when the "Limited" checkbox is checked. */ readonly onLimitedCheck?: () => void; /** * Is called when the "Limited" checkbox is unchecked. */ readonly onLimitedUnCheck?: () => void; }; export declare class SettingLimitedListItem extends SettingListItem { readonly options: SettingLimitedListItemOptions; readonly limitedButton: LimitedButton; /** * Create a UI element for a setting that can be limited. * This will result in an element with a checkbox that has a "Limited" label. * * @param host The userscript instance. * @param label The label for the setting. * @param setting The setting model. * @param options Options for the list item. */ constructor(parent: UiComponent, setting: SettingLimited, label: string, options: SettingLimitedListItemOptions); toString(): string; } //# sourceMappingURL=SettingLimitedListItem.d.ts.map