You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We've noticed that confirm/cancel buttons in primeNG modals cannot have their classes customized. We work with another third-party company to track clicks across our platform. To do this, we insert properties on class attributes for buttons. We've realized that we cannot customize the classes for the dialog-accept and dialog-reject buttons within modals.
Environment
In our environment, the user can create/delete objects. When deleting the object, we use a primeng dialog to allow the user to confirm/reject the deletion. We would like to track which button the user presses by inserting custom properties on the button classes.
Reproducer
No response
Angular version
15.2.1
PrimeNG version
15.3.0
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
16.18.14
Browser(s)
No response
Steps to reproduce the behavior
Add a dialog component to your code
Attempt to customize the class attributes for the confirm/reject buttons
Expected behavior
Class attributes should allow addition of properties
The text was updated successfully, but these errors were encountered:
@wyattpuckett If you use the pTemplate="footer" inside of the dialogs, you can add your own buttons and as then add your own custom classes to the buttons. Example:
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 open a new issue so we can include it in our roadmap?
Thanks a lot for your understanding!
Best Regards,
Describe the bug
We've noticed that confirm/cancel buttons in primeNG modals cannot have their classes customized. We work with another third-party company to track clicks across our platform. To do this, we insert properties on class attributes for buttons. We've realized that we cannot customize the classes for the dialog-accept and dialog-reject buttons within modals.
Environment
In our environment, the user can create/delete objects. When deleting the object, we use a primeng dialog to allow the user to confirm/reject the deletion. We would like to track which button the user presses by inserting custom properties on the button classes.
Reproducer
No response
Angular version
15.2.1
PrimeNG version
15.3.0
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
16.18.14
Browser(s)
No response
Steps to reproduce the behavior
Expected behavior
Class attributes should allow addition of properties
The text was updated successfully, but these errors were encountered: