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