Sha256: 3a2a01ed13e493f0bb6fcb5bce0ae90794036fbbbfdc9edbaca92395ee41d2e3

Contents?: true

Size: 1.08 KB

Versions: 12

Compression:

Stored size: 1.08 KB

Contents

import { Controller } from '@hotwired/stimulus';
export interface ToggleableOutlet {
    toggle: (event: Event, value?: boolean) => void;
}
export default class ToggleableController extends Controller implements ToggleableOutlet {
    #private;
    static outlets: string[];
    static values: {
        state: {
            type: BooleanConstructor;
            default: boolean;
        };
        syncedAttrs: ArrayConstructor;
        antiAttrs: ArrayConstructor;
        closeOnOutsideClick: {
            type: BooleanConstructor;
            default: boolean;
        };
    };
    static removeOnFalseAttrs: {
        [k: string]: boolean;
    };
    stateValue: boolean;
    readonly toggleableOutlets: Array<ToggleableOutlet>;
    readonly hasToggleableOutlet: boolean;
    readonly syncedAttrsValue: string[];
    readonly hasSyncedAttrsValue: boolean;
    readonly antiAttrsValue: string[];
    readonly hasAntiAttrsValue: boolean;
    readonly closeOnOutsideClickValue: boolean;
    connect(): void;
    toggle(event: Event, value?: boolean): void;
    clickOutside(event: Event): void;
}

Version data entries

12 entries across 6 versions & 1 rubygems

Version Path
ariadne_view_components-0.0.48-x64-mingw-ucrt app/components/ariadne/toggleable_controller/toggleable_controller.d.ts
ariadne_view_components-0.0.48-x64-mingw-ucrt app/assets/javascripts/components/ariadne/toggleable_controller/toggleable_controller.d.ts
ariadne_view_components-0.0.48-aarch64-linux app/assets/javascripts/components/ariadne/toggleable_controller/toggleable_controller.d.ts
ariadne_view_components-0.0.48-aarch64-linux app/components/ariadne/toggleable_controller/toggleable_controller.d.ts
ariadne_view_components-0.0.48-x86_64-darwin app/assets/javascripts/components/ariadne/toggleable_controller/toggleable_controller.d.ts
ariadne_view_components-0.0.48-x86_64-darwin app/components/ariadne/toggleable_controller/toggleable_controller.d.ts
ariadne_view_components-0.0.48-arm64-darwin app/components/ariadne/toggleable_controller/toggleable_controller.d.ts
ariadne_view_components-0.0.48-arm64-darwin app/assets/javascripts/components/ariadne/toggleable_controller/toggleable_controller.d.ts
ariadne_view_components-0.0.48 app/assets/javascripts/components/ariadne/toggleable_controller/toggleable_controller.d.ts
ariadne_view_components-0.0.48 app/components/ariadne/toggleable_controller/toggleable_controller.d.ts
ariadne_view_components-0.0.48-x86_64-linux app/assets/javascripts/components/ariadne/toggleable_controller/toggleable_controller.d.ts
ariadne_view_components-0.0.48-x86_64-linux app/components/ariadne/toggleable_controller/toggleable_controller.d.ts