flowbite-2.0
Version:
The most popular library of interactive components built with Tailwind CSS
29 lines • 1 kB
TypeScript
import type { DialOptions, DialTriggerType } from './types';
import { DialInterface } from './interface';
declare class Dial implements DialInterface {
_parentEl: HTMLElement;
_triggerEl: HTMLElement;
_targetEl: HTMLElement;
_options: DialOptions;
_visible: boolean;
_initialized: boolean;
_showEventHandler: EventListenerOrEventListenerObject;
_hideEventHandler: EventListenerOrEventListenerObject;
constructor(parentEl?: HTMLElement | null, triggerEl?: HTMLElement | null, targetEl?: HTMLElement | null, options?: DialOptions);
init(): void;
destroy(): void;
removeInstance(): void;
destroyAndRemoveInstance(): void;
hide(): void;
show(): void;
toggle(): void;
isHidden(): boolean;
isVisible(): boolean;
_getTriggerEventTypes(triggerType: DialTriggerType): {
showEvents: string[];
hideEvents: string[];
};
}
export declare function initDials(): void;
export default Dial;
//# sourceMappingURL=index.d.ts.map