I am using Angular v17 and PrimeNG for a project and I want to add buttons to the header of a dynamic dialog, but I can’t seem to find an answer. This is the code in my dialog component.
show(j): void {
this.ref = this.dialog.open(DetailComponent, {
header: 'Text',
width: '150vh',
data: {
detail: j
}
});
The only work around I have found is to set showHeader
property to false
in the component and customize the content of the dialog, but this is not ideal because it makes the dialog not uniform. Has anyone been able to find a solution to this?
Jordan Hebert is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.