@energycap/components 0.32.21 → 0.32.22-ECAP-17124-tooltip-templateref-contexts.20230214-1205
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/display/tooltip/tooltip.component.mjs +3 -3
- package/esm2020/lib/display/tooltip/tooltip.service.mjs +2 -1
- package/fesm2015/energycap-components.mjs +3 -2
- package/fesm2015/energycap-components.mjs.map +1 -1
- package/fesm2020/energycap-components.mjs +3 -2
- package/fesm2020/energycap-components.mjs.map +1 -1
- package/lib/display/tooltip/tooltip.component.d.ts +12 -0
- package/package.json +1 -1
|
@@ -26,6 +26,14 @@ export interface TooltipOptions {
|
|
|
26
26
|
* Provide a TemplateRef for custom content. If customContent is defined, any value for text will be ignored.
|
|
27
27
|
*/
|
|
28
28
|
customContent?: TemplateRef<any>;
|
|
29
|
+
/**
|
|
30
|
+
* Optional context object to be provided to the custom content outlet. This allows you to pass data to the tooltip
|
|
31
|
+
* custom template.
|
|
32
|
+
*/
|
|
33
|
+
customContentContext?: {
|
|
34
|
+
$implicit?: any;
|
|
35
|
+
[k: number | string]: any;
|
|
36
|
+
};
|
|
29
37
|
/**
|
|
30
38
|
* When true a close button appears in the top right corner to hide the tooltip. Useful when tooltips are used in a tour. An event will emitted when the tooltip is hidden.
|
|
31
39
|
*/
|
|
@@ -51,6 +59,10 @@ export declare class TooltipComponent implements TooltipOptions {
|
|
|
51
59
|
text?: string;
|
|
52
60
|
dismissible: boolean;
|
|
53
61
|
customContent?: TemplateRef<any> | undefined;
|
|
62
|
+
customContentContext?: {
|
|
63
|
+
$implicit?: any;
|
|
64
|
+
[k: number | string]: any;
|
|
65
|
+
};
|
|
54
66
|
overlayRef?: OverlayRef;
|
|
55
67
|
backgroundColor?: string;
|
|
56
68
|
onHide: EventEmitter<void>;
|