@kitten-science/kitten-scientists
Version:
Add-on for the wonderful incremental browser game: https://kittensgame.com/web/
34 lines • 1.35 kB
TypeScript
import { IconButton } from "./IconButton.js";
import { UiComponent, type UiComponentOptions } from "./UiComponent.js";
export type SettingsListOptions = ThisType<SettingsList> & UiComponentOptions & {
readonly hasEnableAll?: boolean;
readonly hasDisableAll?: boolean;
readonly onEnableAll?: () => void;
readonly onDisableAll?: () => void;
readonly onReset?: () => void;
};
/**
* The `SettingsList` is a `<ul>` designed to host `SettingListItem` instances.
*
* It has enable/disable buttons to check/uncheck all settings contained in it.
* Most commonly, it is used as part of the `SettingsPanel`.
*
* This construct is also sometimes referred to as an "items list" for historic reasons.
*/
export declare class SettingsList extends UiComponent {
readonly options: SettingsListOptions;
readonly list: JQuery;
readonly disableAllButton: IconButton | undefined;
readonly enableAllButton: IconButton | undefined;
readonly resetButton: IconButton | undefined;
/**
* Constructs a `SettingsList`.
*
* @param host A reference to the host.
* @param options Which tools should be available on the list?
*/
constructor(parent: UiComponent, options?: SettingsListOptions);
toString(): string;
addChild(child: UiComponent): this;
}
//# sourceMappingURL=SettingsList.d.ts.map