Download the PHP package dominus77/yii2-sweetalert2-widget without Composer
On this page you can find all versions of the php package dominus77/yii2-sweetalert2-widget. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package yii2-sweetalert2-widget
yii2-sweetalert2-widget
Renders a SweetAlert2 widget for Yii2.
Installation
The preferred way to install this extension is through composer.
Either run
or add
to the require section of your composer.json
file.
Usage
Once the extension is installed, simply use it in your code by:
Flash message
View:
Controller:
A basic message
A title with a text under
A modal with a title, an error icon, a text, and a footer
A modal window with a long content inside:
Custom HTML description and buttons with ARIA labels
A dialog with three buttons
A custom positioned dialog
Custom animation with Animate.css
Set to View:
also
A confirm dialog, with a function attached to the "Confirm"-button
... and by passing a parameter, you can execute something else for "Cancel"
A message with a custom image
A message with custom width, padding, background and animated Nyan Cat
A message with auto close timer
Right-to-left support for Arabic, Persian, Hebrew, and other RTL languages
AJAX request example
Mixin example
Multiple
or
Render Widget
View:
A basic message
A title with a text under
A success message!
A message with auto close timer
Custom HTML description and buttons
Custom animation with Animate.css
Example:
A warning message, with a function attached to the "Confirm"-button...
... and by passing a parameter, you can execute something else for "Cancel".
Theme
View:
Testing
More Information
Please, check the SweetAlert2
License
The MIT License (MIT). Please see License File for more information.
All versions of yii2-sweetalert2-widget with dependencies
npm-asset/sweetalert2 Version ^11.4
npm-asset/sweetalert2--themes Version ^5.0
npm-asset/animate.css Version ^4.1