Sha256: 3da799bffc6b3971dabe8e2d4fcd7088aeb21a22d7b2d7ec39a227702b677965

Contents?: true

Size: 1.42 KB

Versions: 114

Compression:

Stored size: 1.42 KB

Contents

import type { TOutletChangeData } from '../outlet_manager_controller/outlet_manager_controller';
import SyncedBooleanAttributesController from '../synced_boolean_attributes_controller/synced_boolean_attributes_controller';
export interface ToggleableOutlet extends SyncedBooleanAttributesController<boolean> {
    toggle: (event: Event, updateTo?: TOutletChangeData<boolean>) => void;
}
export default class ToggleableController extends SyncedBooleanAttributesController<boolean> implements ToggleableOutlet {
    static outlets: string[];
    static values: {
        state: {
            type: BooleanConstructor;
            default: boolean;
        };
        closeOnOutsideClick: {
            type: BooleanConstructor;
            default: boolean;
        };
        syncedAttrs: ArrayConstructor;
        antiAttrs: ArrayConstructor;
        protectAttrs: BooleanConstructor;
        outletEvents: ArrayConstructor;
    };
    stateValue: boolean;
    readonly closeOnOutsideClickValue: boolean;
    connect(): void;
    toggle(event: Event, updateTo?: TOutletChangeData<boolean>): void;
    on(event: Event): void;
    off(event: Event): void;
    clickOutside(event: Event): void;
    getValueForElement(element: Element): boolean | null;
    getElementsToSync(): Element[] | null | undefined;
    getState(): boolean;
    get event_key_postfix(): "on" | "off";
    outletUpdate: (event: Event, updateTo?: TOutletChangeData<boolean>) => void;
}

Version data entries

114 entries across 60 versions & 1 rubygems

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