All confirm messages can be customized. For more detailed settings and options, please visit
https://sweetalert2.github.io/#usage.
Among all options you can find in the alert section, we can also decide on custom classes and make the APEX buttons look alike.
Here is a basic sample of usage:
{
"iconColor":"darkred",
"background":"#e6ffff",
"confirmButtonText":"<span class=\"t-Icon fa fa-check-circle\" aria-hidden=\"true\"></span> Yes",
"cancelButtonText":"<span class=\"t-Icon fa fa-times-circle\" aria-hidden=\"true\"></span> No",
"customClass": {
"confirmButton":"t-Button t-Button--icon t-Button--success t-Button--iconLeft",
"cancelButton": "t-Button t-Button--icon t-Button--danger t-Button--iconLeft"
}
}
Here is a list of all possible classes.
customClass: {
container: '...',
popup: '...',
header: '...',
title: '...',
closeButton: '...',
icon: '...',
image: '...',
content: '...',
input: '...',
inputLabel: '...',
validationMessage: '...',
actions: '...',
confirmButton: '...',
denyButton: '...',
cancelButton: '...',
loader: '...',
footer: '....'
}
For more class options you can take a look
APEX button builder.