weison-tech / yii2-layer
Alert widget based on layer.js extension {@link https://github.com/sentsin/layer)
Installs: 205
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 2 744
Language:JavaScript
Type:yii2-extension
Requires
This package is not auto-updated.
Last update: 2024-10-26 19:43:17 UTC
README
Alert widget based on layer
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist weison-tech/yii2-layer "*"
or add
"weison-tech/yii2-layer": "*"
to the require section of your composer.json.
Usage
Update your AppAsset
<?php
namespace app\assets;
use yii\web\AssetBundle;
class AppAsset extends AssetBundle
{
...
public $depends = [
...
'weison\alert\LayerAsset', // Import layer alert's js and css
...
];
...
}