Configuration
Fire¶
In SweetAlert2, the fire()
method is the core function used to create and display alerts. It is highly flexible and allows you to customize the appearance and behavior of your alerts.
A previously prepared alert configuration can be called within the desired function. Or it can be defined and triggered directly within the function.
Render¶
If it is necessary to listen to the alert response, the alert configuration can be rendered and the native fire() method can be used instead of the helper.