forked from hero/www_hero
23 lines
774 B
TypeScript
23 lines
774 B
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;
|
||
|
constructor(parentEl?: HTMLElement | null, triggerEl?: HTMLElement | null, targetEl?: HTMLElement | null, options?: DialOptions);
|
||
|
_init(): 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
|