Méthode |
Description |
|
__construct ( UxWeb\SweetAlert\SessionStore $session ) |
Create a new SweetAlertNotifier instance. |
|
autoclose ( integer $milliseconds = null ) : SweetAlertNotifier |
Set the duration for this alert until it autocloses. |
|
basic ( string $text, string $title ) : SweetAlertNotifier |
Display a not typed alert message with a text and a title. |
|
cancelButton ( $buttonText = 'Cancel' ) |
|
|
confirmButton ( string $buttonText = 'OK' ) : SweetAlertNotifier |
Add a confirmation button to the alert. |
|
error ( string $text, string $title = '' ) : SweetAlertNotifier |
Display an error typed alert message with a text and an optional title. |
|
getConfig ( ) : array |
Return the current alert configuration. |
|
getJsonConfig ( ) : string |
Return the current alert configuration as Json. |
|
html ( ) : SweetAlertNotifier |
Make Message HTML view. |
|
info ( string $text, string $title = '' ) : SweetAlertNotifier |
Display an info typed alert message with a text and an optional title. |
|
message ( string $text, string $title = '', string $type = null ) : SweetAlertNotifier |
Display an alert message with a text and an optional title. |
|
persistent ( string $buttonText = 'OK' ) : SweetAlertNotifier |
Make this alert persistent with a confirmation button. |
|
success ( string $text, string $title = '' ) : SweetAlertNotifier |
Display a success typed alert message with a text and an optional title. |
|
warning ( string $text, string $title = '' ) : SweetAlertNotifier |
Display a warning typed alert message with a text and an optional title. |
|