omnilight/yii2-sweetalert SweetAlert asset for Yii2 framework

sweetalert

yii2-sweetalert

SweetAlert asset for Yii2 framework

Install

The preferred way to install this extension is through composer.

Add composer dependence in composer.json

"omnilight/yii2-sweetalert": "1.0.*"

and run composer update

Usage

Just register SweetAlert asset in your view as:

use omnilight\assets\SweetAlertAsset;

SweetAlertAsset::register($this);

and you are ready to use SweetAlert JS code:

swal("Hello world!");

License

Extension is released under the MIT License. See the bundled LICENSE.md for details.

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

Comments



1.0.4 is the latest of 5 releases



Unknown license
Stats
3 github stars & 2 github forks
1 downloads in the last day
13 downloads in the last 30 days
10710 total downloads