forked from hero/www_hero
22 lines
869 B
TypeScript
22 lines
869 B
TypeScript
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
|