UNPKG

flowbite-2.4.0

Version:

The most popular library of interactive components built with Tailwind CSS

26 lines 1 kB
import type { CollapseOptions } from './types'; import type { InstanceOptions } from '../../dom/types'; import { CollapseInterface } from './interface'; declare class Collapse implements CollapseInterface { _instanceId: string; _targetEl: HTMLElement | null; _triggerEl: HTMLElement | null; _options: CollapseOptions; _visible: boolean; _initialized: boolean; _clickHandler: EventListenerOrEventListenerObject; constructor(targetEl?: HTMLElement | null, triggerEl?: HTMLElement | null, options?: CollapseOptions, instanceOptions?: InstanceOptions); init(): void; destroy(): void; removeInstance(): void; destroyAndRemoveInstance(): void; collapse(): void; expand(): void; toggle(): void; updateOnCollapse(callback: () => void): void; updateOnExpand(callback: () => void): void; updateOnToggle(callback: () => void): void; } export declare function initCollapses(): void; export default Collapse; //# sourceMappingURL=index.d.ts.map