Sha256: 6660b11ead67c34e7d759cfd211f354709dd142aeccaa957cf3c17ea8141f95b
Contents?: true
Size: 852 Bytes
Versions: 82
Compression:
Stored size: 852 Bytes
Contents
declare class ToggleSwitchElement extends HTMLElement { switch: HTMLElement; loadingSpinner: HTMLElement; errorIcon: HTMLElement; turbo: boolean; private toggling; get src(): string | null; get csrf(): string | null; get csrfField(): string; isRemote(): boolean; toggle(): Promise<void>; turnOn(): void; turnOff(): void; isOn(): boolean; isOff(): boolean; isDisabled(): boolean; disable(): void; enable(): void; private performToggle; private setLoadingState; private setSuccessState; private setErrorState; private setFinishedState; private submitForm; } declare global { interface Window { ToggleSwitchElement: typeof ToggleSwitchElement; Turbo: { renderStreamMessage: (message: string) => void; }; } } export {};
Version data entries
82 entries across 41 versions & 2 rubygems