1 |
|
2 |
|
3 |
|
4 |
|
5 | export interface Tooltip {
|
6 | readonly options: TooltipOptions;
|
7 | readonly enabled: boolean;
|
8 | readonly timeout: number;
|
9 | readonly hoverState: "in" | "out" | null;
|
10 | readonly element: HTMLElement;
|
11 |
|
12 | getTitle(): string;
|
13 | getTooltipElement(): HTMLElement;
|
14 | getArrowElement(): HTMLElement;
|
15 | enable(): void;
|
16 | disable(): void;
|
17 | toggleEnabled(): void;
|
18 | toggle(): void;
|
19 | recalculatePosition(): void;
|
20 | }
|
21 |
|
22 |
|
23 | export interface TooltipOptions {
|
24 |
|
25 | animation?: boolean | undefined;
|
26 |
|
27 |
|
28 | container?: string | HTMLElement | false | undefined;
|
29 |
|
30 | |
31 |
|
32 |
|
33 |
|
34 | delay?: number | { show: number; hide: number } | undefined;
|
35 |
|
36 |
|
37 | html?: boolean | undefined;
|
38 |
|
39 |
|
40 | placement?: "top" | "bottom" | "left" | "right" | "auto" | undefined;
|
41 |
|
42 | |
43 |
|
44 |
|
45 |
|
46 | selector?: string | undefined;
|
47 |
|
48 |
|
49 | template?: string | undefined;
|
50 |
|
51 | |
52 |
|
53 |
|
54 |
|
55 |
|
56 | title?: string | HTMLElement | (() => string) | undefined;
|
57 |
|
58 | /**
|
59 | * How tooltip is triggered - click | hover | focus | manual.
|
60 | * You may pass multiple triggers; separate them with a space.
|
61 | */
|
62 | trigger?: string | undefined;
|
63 | }
|
64 |
|
\ | No newline at end of file |