panix / asset-bootstrap-notify
Asset bootstrap notify
dev-master
2019-04-22 12:57 UTC
Requires
- bower-asset/remarkable-bootstrap-notify: ^3.1.3
- yiisoft/yii2: *
This package is auto-updated.
Last update: 2024-09-23 00:59:02 UTC
README
Yii2 资产
安装
安装此扩展的首选方式是通过 composer。
运行以下命令之一:
php composer.phar require --prefer-dist panix/asset-bootstrap-notify "*"
或
"panix/asset-bootstrap-notify": "*"
将以下内容添加到您的 composer.json
文件的 require 部分。
添加到您的视图
\panix\asset\bootstrap\notify\Asset::register($this);
$this->registerJs("
$.notify({
// options
message: 'Hello World'
},{
// settings
type: 'danger'
});
");