File size: 589 Bytes
baac5bb |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
import {ComfyApp} from "@comfyorg/frontend";
type ComfyButtonProps = {
icon?: string;
overIcon?: string;
iconSize?: number;
content?: string | HTMLElement;
tooltip?: string;
enabled?: boolean;
action?: (e: Event, btn: ComfyButton) => void;
classList?: string;
visibilitySetting?: {id: string; showValue: any};
app?: ComfyApp;
};
export declare class ComfyButton {
element: HTMLElement;
iconElement: HTMLElement;
contentElement: HTMLElement;
constructor(props: ComfyButtonProps);
updateIcon(): void;
withPopup(popup: any, mode: "click" | "hover"): this;
}
|