@kitten-science/kitten-scientists
Version:
Add-on for the wonderful incremental browser game: https://kittensgame.com/web/
31 lines • 1.22 kB
TypeScript
import { Container } from "./Container.js";
import { ListItem, type ListItemOptions } from "./ListItem.js";
import type { UiComponent, UiComponentInterface } from "./UiComponent.js";
export type LabelListItemOptions = ThisType<LabelListItem> & ListItemOptions & {
/**
* When set to an SVG path, will be used as an icon on the label.
*/
readonly icon?: string;
/**
* Should an indicator be rendered in front of the element,
* to indicate that this is an upgrade of a prior setting?
*/
readonly upgradeIndicator?: boolean;
};
export declare class LabelListItem extends ListItem {
readonly options: LabelListItemOptions;
readonly head: Container;
readonly elementLabel: JQuery;
/**
* Construct a new label list item.
*
* @param host The userscript instance.
* @param label The label on the setting element.
* @param options Options for the list item.
*/
constructor(parent: UiComponent, label: string, options?: LabelListItemOptions);
toString(): string;
addChildHead(child: UiComponentInterface): this;
addChildrenHead(children?: Iterable<UiComponentInterface>): this;
}
//# sourceMappingURL=LabelListItem.d.ts.map