www_hero/node_modules/flowbite/lib/cjs/components/dropdown/interface.d.ts

22 lines
869 B
TypeScript
Raw Permalink Normal View History

2024-05-03 04:39:20 +00:00
import { DropdownOptions, DropdownTriggerType, DropdownTriggerEventTypes } from './types';
import type { Instance as PopperInstance } from '@popperjs/core';
export declare interface DropdownInterface {
_targetEl: HTMLElement;
_triggerEl: HTMLElement;
_options: DropdownOptions;
_visible: boolean;
_popperInstance: PopperInstance;
_clickOutsideEventListener: EventListenerOrEventListenerObject;
_init(): void;
_createPopperInstance(): PopperInstance;
_setupEventListeners(): void;
_setupClickOutsideListener(): void;
_removeClickOutsideListener(): void;
_handleClickOutside(ev: Event, targetEl: HTMLElement): void;
_getTriggerEvents(triggerType: DropdownTriggerType): DropdownTriggerEventTypes;
isVisible(): boolean;
toggle(): void;
show(): void;
hide(): void;
}
//# sourceMappingURL=interface.d.ts.map