AAE-4879 Update tooltip card to receive custom HTML (#6930)

This commit is contained in:
Pablo Martinez Garcia
2021-04-16 10:39:19 +02:00
committed by GitHub
parent e9bf84e13c
commit 684cdb88ea
5 changed files with 34 additions and 13 deletions

View File

@@ -1,5 +1,6 @@
<div @tooltip class="adf-tooltip-card" [style.width.px]="width">
<img [src]="image" [width]="width" alt="{{text}}">
<hr *ngIf="image"/>
<p>{{text}}</p>
<img *ngIf="image " [src]="image" [width]="width" alt="{{text}}">
<hr *ngIf="image" />
<p *ngIf="text">{{text}}</p>
<div *ngIf="htmlContent" [innerHTML]="sanitizedHtmlContent()" class="adf-tooltip-card-content"></div>
</div>