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

29 lines
1.1 KiB
TypeScript
Raw Permalink Normal View History

2024-05-03 04:39:20 +00:00
import type { Instance as PopperInstance } from '@popperjs/core';
import type { DropdownOptions } from './types';
import { DropdownInterface } from './interface';
declare class Dropdown implements DropdownInterface {
_targetEl: HTMLElement;
_triggerEl: HTMLElement;
_options: DropdownOptions;
_visible: boolean;
_popperInstance: PopperInstance;
_clickOutsideEventListener: EventListenerOrEventListenerObject;
constructor(targetElement?: HTMLElement | null, triggerElement?: HTMLElement | null, options?: DropdownOptions);
_init(): void;
_setupEventListeners(): void;
_createPopperInstance(): PopperInstance;
_setupClickOutsideListener(): void;
_removeClickOutsideListener(): void;
_handleClickOutside(ev: Event, targetEl: HTMLElement): void;
_getTriggerEvents(): {
showEvents: string[];
hideEvents: string[];
};
toggle(): void;
isVisible(): boolean;
show(): void;
hide(): void;
}
export declare function initDropdowns(): void;
export default Dropdown;
//# sourceMappingURL=index.d.ts.map