I'm currently working on a project using Angular v17 and PrimeNG. I need to add buttons to the header of a dynamic dialog, but I've been struggling to find a solution. Here's the code snippet from my dialog component:
show(j): void {
this.ref = this.dialog.open(DetailComponent, {
header: 'Text',
width: '150vh',
data: {
detail: j
}
});
So far, the only workaround I've come up with is setting the showHeader
property to false
in the component and customizing the dialog content. However, this isn't ideal as it leads to non-uniformity in the dialog appearance. Has anyone found a better solution for this issue?