UNPKG

1.13 kBTypeScriptView Raw
1import * as React from 'react';
2import { ReactRenderer, RendererHost } from './widgets/react-renderer';
3import { CorePreferences } from './core-preferences';
4export declare const TooltipService: unique symbol;
5export interface TooltipService {
6 tooltipId: string;
7 attachTo(host: HTMLElement): void;
8 update(fullRender?: boolean): void;
9}
10/**
11 * Attributes to be added to an HTML element to enable
12 * rich HTML tooltip rendering
13 */
14export interface TooltipAttributes {
15 /**
16 * HTML to render in the tooltip.
17 */
18 'data-tip': string;
19 /**
20 * The ID of the tooltip renderer. Should be TOOLTIP_ID.
21 */
22 'data-for': string;
23}
24export declare class TooltipServiceImpl extends ReactRenderer implements TooltipService {
25 protected readonly corePreferences: CorePreferences;
26 readonly tooltipId: string;
27 protected rendered: boolean;
28 constructor(host?: RendererHost);
29 protected init(): void;
30 attachTo(host: HTMLElement): void;
31 update(fullRender?: boolean): void;
32 protected doRender(): React.ReactNode;
33 dispose(): void;
34}
35//# sourceMappingURL=tooltip-service.d.ts.map
\No newline at end of file