Create a template for DynamicDialog footer
** I'm submitting to ... ** [] bug report [X] feature request [] support request
** Current behavior ** Today it's only possible to put a string in footer
** Expected behavior ** It would be interesting put a template, where you can put anything there Like the p-dialog where you can put a p-footer
** What is the motivation / use case for changing the behavior? ** I need to show a button on a p-dynamicdialog footer.
** Please tell us about your environment: ** I'm using Win10 and Yarn for my package manager
-
** Angular version: ** 7.2.6
-
** PrimeNG version: ** 7.0.0
-
** Browser: ** all
-
** Language: ** all
-
** Node (for AoT issues): **
node --version= 10.13.0
I would also like this feature, but update your issue to correctly reflect the class you're trying to reference
Is this available?
I've solved this issue on my own to see if it was possible, as well as, several other features that would be useful. Looks like there's an interest in it. I'll try and get a pull request out this weekend
@BensonBen, That would be really helpful. Please comment when you have this completed. Thanks
I needed this too but for the header, I patched it in on my end by changing the header to instead be a innerhtml binding and it seems to be working fine, still trying to find a more elegant solution though.
If you want to implement dynamic diaolog, you can do the following: 1、Write
at the bottom of your component;
2、Configure the contentstyle parameter in your dialogservice.open method. Just like contentStyle:{
"padding-bottom":"50px"
}

Can anyone tell me if this improvement will be implemented?
same here, need it very quickly
Hi,
So sorry for the delayed response! Improvements have been made to many components recently, both in terms of performance and enhancement. Therefore, this improvement may have been developed in another issue ticket without realizing it. You can check this in the documentation. If there is no improvement on this, can you reopen the issue so we can include it in our roadmap? Please don't forget to add your feedback as a comment after reopening the issue. These will be taken into account by us and will contribute to the development of this feature. Thanks a lot for your understanding!
Best Regards,
Hi @mertsincan - this feature has not been added. Can you please reopen the issue?
i just needed the feature, thank u @toxaq, hope it's will be deploy soon
Hi,
You can use templating options of dynamic dialog https://primeng.org/dynamicdialog#api.dynamicdialog-ref.interfaces.DynamicDialogTemplates
Please also see the example: https://primeng.org/dynamicdialog#example
Hi,
You can use templating options of dynamic dialog https://primeng.org/dynamicdialog#api.dynamicdialog-ref.interfaces.DynamicDialogTemplates
Please also see the example: https://primeng.org/dynamicdialog#example
@cetincakiroglu Is there any chance to support adding header/content/footer by referencing some specific directive (simply pass TemplateRef). The possibility to pass only the Footer or Header components is quite inconvenient. It would be nice to have an option, building dialog contents, to just put a directive over a element, and that directive would be checked in Prime Dialog component.