UNPKG

2.5 kBTypeScriptView Raw
1import { NbStatusService } from '../../services/status.service';
2import { NbComponentOrCustomStatus } from '../component-status';
3import { NbRenderableContainer } from '../cdk/overlay/overlay-container';
4import { NbPosition } from '../cdk/overlay/overlay-position';
5import { NbIconConfig } from '../icon/icon.component';
6import * as i0 from "@angular/core";
7/**
8 * Tooltip container.
9 * Renders provided tooltip inside.
10 *
11 * @styles
12 *
13 * tooltip-background-color:
14 * tooltip-border-color:
15 * tooltip-border-style:
16 * tooltip-border-width:
17 * tooltip-border-radius:
18 * tooltip-padding:
19 * tooltip-text-color:
20 * tooltip-text-font-family:
21 * tooltip-text-font-size:
22 * tooltip-text-font-weight:
23 * tooltip-text-line-height:
24 * tooltip-icon-height:
25 * tooltip-icon-width:
26 * tooltip-max-width:
27 * tooltip-basic-background-color:
28 * tooltip-basic-border-color:
29 * tooltip-basic-text-color:
30 * tooltip-primary-background-color:
31 * tooltip-primary-border-color:
32 * tooltip-primary-text-color:
33 * tooltip-info-background-color:
34 * tooltip-info-border-color:
35 * tooltip-info-text-color:
36 * tooltip-success-background-color:
37 * tooltip-success-border-color:
38 * tooltip-success-text-color:
39 * tooltip-warning-background-color:
40 * tooltip-warning-border-color:
41 * tooltip-warning-text-color:
42 * tooltip-danger-background-color:
43 * tooltip-danger-border-color:
44 * tooltip-danger-text-color:
45 * tooltip-control-background-color:
46 * tooltip-control-border-color:
47 * tooltip-control-text-color:
48 * tooltip-shadow:
49 */
50export declare class NbTooltipComponent implements NbRenderableContainer {
51 protected statusService: NbStatusService;
52 content: string;
53 /**
54 * Popover position relatively host element.
55 * */
56 position: NbPosition;
57 get binding(): string;
58 get show(): boolean;
59 context: {
60 icon?: string | NbIconConfig;
61 status?: NbComponentOrCustomStatus;
62 };
63 get statusClass(): string;
64 constructor(statusService: NbStatusService);
65 /**
66 * The method is empty since we don't need to do anything additionally
67 * render is handled by change detection
68 */
69 renderContent(): void;
70 static ɵfac: i0.ɵɵFactoryDeclaration<NbTooltipComponent, never>;
71 static ɵcmp: i0.ɵɵComponentDeclaration<NbTooltipComponent, "nb-tooltip", never, { "content": { "alias": "content"; "required": false; }; "position": { "alias": "position"; "required": false; }; "context": { "alias": "context"; "required": false; }; }, {}, never, never, false, never>;
72}