diff options
author | Yoav Schneiderman <yoav.schneiderman@intl.att.com> | 2020-01-15 15:32:10 +0200 |
---|---|---|
committer | Eylon Malin <eylon.malin@intl.att.com> | 2020-01-20 13:16:47 +0000 |
commit | 3279721d72b3e5adadf5431c58383e71f6b080d7 (patch) | |
tree | 3b5fa47ab6a959dc66db1309d7a7308ab147a6b5 /vid-webpack-master/src/app/shared/components/customTooltip/custom-tooltip.component.ts | |
parent | dfcca5853eacb0e0d3bdd6370c724503c34194be (diff) |
Move onap UI loader and icons to VID
Issue-ID: VID-748
Change-Id: If79180e55651ad29bd2771a35855209419d1a0f5
Signed-off-by: Yoav Schneiderman <yoav.schneiderman@intl.att.com>
Diffstat (limited to 'vid-webpack-master/src/app/shared/components/customTooltip/custom-tooltip.component.ts')
-rw-r--r-- | vid-webpack-master/src/app/shared/components/customTooltip/custom-tooltip.component.ts | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/vid-webpack-master/src/app/shared/components/customTooltip/custom-tooltip.component.ts b/vid-webpack-master/src/app/shared/components/customTooltip/custom-tooltip.component.ts new file mode 100644 index 000000000..a8163a6d8 --- /dev/null +++ b/vid-webpack-master/src/app/shared/components/customTooltip/custom-tooltip.component.ts @@ -0,0 +1,20 @@ +import {AfterViewInit, Component, ViewChild, ViewContainerRef} from "@angular/core"; +import {BehaviorSubject} from "rxjs"; + +@Component({ + selector: 'tooltip-template', + template: ` + <div class="custom-tooltip-template-container"> + <ng-container #templateContainer></ng-container> + </div>` +}) + +export class TooltipTemplateComponent implements AfterViewInit { + @ViewChild('templateContainer', {read: ViewContainerRef, static: true}) public container: ViewContainerRef; + + public viewReady: BehaviorSubject<boolean> = new BehaviorSubject<boolean>(false); + + ngAfterViewInit() : void { + this.viewReady.next(true); + } +} |