Opening multiple dialogs #2390
Unanswered
FPORTELLA5
asked this question in
PrimeNG
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When clicking a button on a card, it opens several dialogs on other cards, when closing a dialog it closes all the others, how to fix it to open only one dialog. My code:
<p-button (onClick)="showDialogMaisInformacoes ('')"
icon="pi pi-plus"
pTooltip="Mais Informações" tooltipPosition="bottom" placeholder="Bottom"
styleClass="border-primary-500 border-1 border-solid border-round cursor-pointer transition-all
transition-duration-200 hover:bg-primary-600 hover:border-primary-600 active:bg-primary-700
active:border-primary-700 border-circle"/>
<p-dialog
[(visible)]="visibleDialogMaisInformacoes"
[breakpoints]="{ '1199px': '75vw', '575px': '90vw' }"
[maximizable]="true"
[modal]="false"
[style]="{ width: '50rem' }"
class="p-col p-md-6 p-lg-4 text-left p-3 -mt-3 text-sm" header="Mais Informações">
<div class="p-col p-md-6 p-lg-4 text-left p-3 -mt-3 text-sm" *ngIf="doc.cdObraAbramus != null">
Abramus:
{{ doc.cdObraAbramus }}
<div class="p-col p-md-6 p-lg-4 text-left p-3 -mt-3 text-sm" *ngIf="doc.cdObraEcad != null">
Ecad:
{{ doc.cdObraEcad }}
Beta Was this translation helpful? Give feedback.
All reactions