aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/ng2/components/ui/popover/popover-content.component.html
blob: fc6e821f34d0064395d7c736a8b21386657786c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<div #popoverDiv class="popover {{ effectivePlacement }}"
     [style.top]="top + 'px'"
     [style.left]="left + 'px'"
     [class.in]="isIn"
     [class.fade]="animation"
     style="display: block"
     role="popover"
     [ngClass]="{'hide-arrow':hideArrow}">
    <div [hidden]="!closeOnMouseOutside" class="virtual-area"></div>
    <div class="arrow" *ngIf="!hideArrow"></div>
    <div class="popover-header">
        <span class="title">{{ title }}</span>
        <span class="close-button" (click)="popover.hide()"></span>
    </div>
    <ng-content></ng-content>
    <div class="popover-footer">
        <button *ngFor="let buttonName of buttonsNames"
                class="tlv-btn {{buttons[buttonName].cssClass}}" 
                [attr.data-tests-id]="'filter-' + buttons[buttonName].text.toLowerCase() + '-button'"
                [disabled] = "buttons[buttonName].getDisabled && buttons[buttonName].getDisabled()"
                (click) = "buttons[buttonName].callback()">{{buttons[buttonName].text}}</button>
    </div>
</div>