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