SweetAlert asset for Yii2 framework
The preferred way to install this extension is through composer.
Add composer dependence in composer.json
and run composer update
Just register SweetAlert asset in your view as:
use omnilight\assets\SweetAlertAsset; SweetAlertAsset::register($this);
and you are ready to use SweetAlert JS code:
Extension is released under the MIT License. See the bundled
LICENSE.md for details.