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

Version Path
openproject-primer_view_components-0.48.0 app/assets/javascripts/app/components/primer/alpha/toggle_switch.d.ts
openproject-primer_view_components-0.48.0 app/components/primer/alpha/toggle_switch.d.ts
openproject-primer_view_components-0.47.1 app/components/primer/alpha/toggle_switch.d.ts
openproject-primer_view_components-0.47.1 app/assets/javascripts/app/components/primer/alpha/toggle_switch.d.ts
openproject-primer_view_components-0.47.0 app/assets/javascripts/app/components/primer/alpha/toggle_switch.d.ts
openproject-primer_view_components-0.47.0 app/components/primer/alpha/toggle_switch.d.ts
primer_view_components-0.34.0 app/assets/javascripts/app/components/primer/alpha/toggle_switch.d.ts
primer_view_components-0.34.0 app/components/primer/alpha/toggle_switch.d.ts
openproject-primer_view_components-0.46.1 app/components/primer/alpha/toggle_switch.d.ts
openproject-primer_view_components-0.46.1 app/assets/javascripts/app/components/primer/alpha/toggle_switch.d.ts
openproject-primer_view_components-0.46.0 app/components/primer/alpha/toggle_switch.d.ts
openproject-primer_view_components-0.46.0 app/assets/javascripts/app/components/primer/alpha/toggle_switch.d.ts
openproject-primer_view_components-0.45.0 app/components/primer/alpha/toggle_switch.d.ts
openproject-primer_view_components-0.45.0 app/assets/javascripts/app/components/primer/alpha/toggle_switch.d.ts
openproject-primer_view_components-0.44.3 app/components/primer/alpha/toggle_switch.d.ts
openproject-primer_view_components-0.44.3 app/assets/javascripts/app/components/primer/alpha/toggle_switch.d.ts
openproject-primer_view_components-0.44.2 app/components/primer/alpha/toggle_switch.d.ts
openproject-primer_view_components-0.44.2 app/assets/javascripts/app/components/primer/alpha/toggle_switch.d.ts
openproject-primer_view_components-0.44.1 app/components/primer/alpha/toggle_switch.d.ts
openproject-primer_view_components-0.44.1 app/assets/javascripts/app/components/primer/alpha/toggle_switch.d.ts