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

32 lines
1.2 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 { TooltipOptions } from './types';
import { TooltipInterface } from './interface';
declare class Tooltip implements TooltipInterface {
_targetEl: HTMLElement | null;
_triggerEl: HTMLElement | null;
_options: TooltipOptions;
_popperInstance: PopperInstance;
_clickOutsideEventListener: EventListenerOrEventListenerObject;
_keydownEventListener: EventListenerOrEventListenerObject;
_visible: boolean;
constructor(targetEl?: HTMLElement | null, triggerEl?: HTMLElement | null, options?: TooltipOptions);
_init(): void;
_setupEventListeners(): void;
_createPopperInstance(): PopperInstance;
_getTriggerEvents(): {
showEvents: string[];
hideEvents: string[];
};
_setupKeydownListener(): void;
_removeKeydownListener(): void;
_setupClickOutsideListener(): void;
_removeClickOutsideListener(): void;
_handleClickOutside(ev: Event, targetEl: HTMLElement): void;
isVisible(): boolean;
toggle(): void;
show(): void;
hide(): void;
}
export declare function initTooltips(): void;
export default Tooltip;
//# sourceMappingURL=index.d.ts.map