UNPKG

@kitten-science/kitten-scientists

Version:

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

22 lines 805 B
import type { IconButtonOptions } from "../IconButton.js"; import { UiComponent } from "../UiComponent.js"; export type ExpandoButtonOptions = ThisType<ExpandoButton> & IconButtonOptions; export declare class ExpandoButton extends UiComponent { readonly options: ExpandoButtonOptions; readOnly: boolean; inactive: boolean; ineffective: boolean; /** * Constructs an expando element that is commonly used to expand and * collapses a section of the UI. * * @param host A reference to the host. * @param options Options for this expando. */ constructor(parent: UiComponent, options?: ExpandoButtonOptions); toString(): string; setCollapsed(): void; setExpanded(): void; click(): Promise<void>; } //# sourceMappingURL=ExpandoButton.d.ts.map