Files
psp_panel/src/app/shared/components/card-data.component.html
T

27 lines
854 B
HTML
Raw Normal View History

2025-12-04 21:07:18 +03:30
<p-card>
<ng-template #title>
<ng-container [ngTemplateOutlet]="header">
<div class="flex items-center gap-10 justify-between">
<h5 class="font-bold py-1.5">{{ cardTitle }}</h5>
2025-12-04 21:07:18 +03:30
<div class="flex items-center gap-2 shrink-0">
2026-04-23 01:22:44 +03:30
<ng-container [ngTemplateOutlet]="moreActions"></ng-container>
@if (showRefresh) {
<p-button icon="pi pi-refresh" outlined (click)="refresh()"></p-button>
}
2025-12-04 21:07:18 +03:30
@if (editable) {
<button
pButton
type="button"
[icon]="`pi ${editMode ? 'pi-times' : 'pi-pencil'}`"
class="p-button-text p-button-plain"
(click)="onEditClick()"
></button>
}
</div>
</div>
</ng-container>
<hr />
</ng-template>
<ng-content></ng-content>
</p-card>