panix/asset-bootstrap-notify

Asset bootstrap notify

安装: 192

依赖: 1

建议: 0

安全: 0

星标: 0

关注者: 2

分支: 0

开放问题: 0

类型:yii2-extension

dev-master 2019-04-22 12:57 UTC

This package is auto-updated.

Last update: 2024-09-23 00:59:02 UTC


README

Yii2 资产

Latest Stable Version Total Downloads Monthly Downloads Daily Downloads Latest Unstable Version License

安装

安装此扩展的首选方式是通过 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'
    });
");

链接