Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic dialog Footer template not working #16385

Open
SharmaHarsh7 opened this issue Sep 14, 2024 · 0 comments
Open

Dynamic dialog Footer template not working #16385

SharmaHarsh7 opened this issue Sep 14, 2024 · 0 comments
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@SharmaHarsh7
Copy link

SharmaHarsh7 commented Sep 14, 2024

Describe the bug

I have written below code in my dynamic dialog component, where I want to add two buttons at the bottom of the dialog.

But it appears that primeng is not reading the footer template and not rendering the footer in dialog:

My dynamic dialog content goes here.

<ng-template pTemplate="footer" #footer>
  <p-button pRipple label="Save" class=" p-button-rounded" icon="pi pi-save" (onClick)="close()"></p-button>
  <p-button pRipple label="Cancel" icon="pi pi-times" severity="secondary" (onClick)="close()"></p-button>
</ng-template>

Environment

dev

Reproducer

No response

Angular version

18.1.0

PrimeNG version

17.18.0

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

20.17.0

Browser(s)

No response

Steps to reproduce the behavior

No response

Expected behavior

No response

@SharmaHarsh7 SharmaHarsh7 added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Sep 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Projects
None yet
Development

No branches or pull requests

1 participant