Sha256: e76a0a2f82cbae20d55495db238961484f805716dbc895b012baabd2ae0cbd67

Contents?: true

Size: 744 Bytes

Versions: 178

Compression:

Stored size: 744 Bytes

Contents

declare class ToggleSwitchElement extends HTMLElement {
    switch: HTMLElement;
    loadingSpinner: HTMLElement;
    errorIcon: HTMLElement;
    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;
    }
}
export {};

Version data entries

178 entries across 90 versions & 3 rubygems

Version Path
jekyll-v4-theme-primer-0.16.0 _sass/@primer/view-components/app/assets/javascripts/app/components/primer/alpha/toggle_switch.d.ts
jekyll-v4-theme-primer-0.16.0 _sass/@primer/view-components/app/components/primer/alpha/toggle_switch.d.ts
openproject-primer_view_components-0.39.1 app/components/primer/alpha/toggle_switch.d.ts
openproject-primer_view_components-0.39.1 app/assets/javascripts/app/components/primer/alpha/toggle_switch.d.ts
openproject-primer_view_components-0.39.0 app/components/primer/alpha/toggle_switch.d.ts
openproject-primer_view_components-0.39.0 app/assets/javascripts/app/components/primer/alpha/toggle_switch.d.ts
openproject-primer_view_components-0.38.0 app/assets/javascripts/app/components/primer/alpha/toggle_switch.d.ts
openproject-primer_view_components-0.38.0 app/components/primer/alpha/toggle_switch.d.ts
primer_view_components-0.29.0 app/assets/javascripts/app/components/primer/alpha/toggle_switch.d.ts
primer_view_components-0.29.0 app/components/primer/alpha/toggle_switch.d.ts
primer_view_components-0.28.0 app/assets/javascripts/app/components/primer/alpha/toggle_switch.d.ts
primer_view_components-0.28.0 app/components/primer/alpha/toggle_switch.d.ts
openproject-primer_view_components-0.37.1 app/assets/javascripts/app/components/primer/alpha/toggle_switch.d.ts
openproject-primer_view_components-0.37.1 app/components/primer/alpha/toggle_switch.d.ts
openproject-primer_view_components-0.37.0 app/assets/javascripts/app/components/primer/alpha/toggle_switch.d.ts
openproject-primer_view_components-0.37.0 app/components/primer/alpha/toggle_switch.d.ts
openproject-primer_view_components-0.36.2 app/assets/javascripts/app/components/primer/alpha/toggle_switch.d.ts
openproject-primer_view_components-0.36.2 app/components/primer/alpha/toggle_switch.d.ts
openproject-primer_view_components-0.36.1 app/assets/javascripts/app/components/primer/alpha/toggle_switch.d.ts
openproject-primer_view_components-0.36.1 app/components/primer/alpha/toggle_switch.d.ts