gudezi /
列出通知小部件
1.0.0
2016-10-20 14:48 UTC
Requires
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2024-09-29 00:58:34 UTC
README
notifications-widget
列出通知小部件
安装
安装此扩展的首选方式是通过composer。
运行以下命令之一:
php composer.phar require --prefer-dist gudezi/yii2-notifications-widget "*"
或者在您的composer.json
文件的require部分添加:
"gudezi/yii2-notifications-widget": "*"
到您的composer.json
文件的要求部分。
使用方法
一旦安装了该扩展,只需在您的代码中通过
// Example of data. $data = [ ['url' => '', 'user' => 'Equipo de soporte','image' => '','time' => '5 min','message' => 'Make Deploy?'], ['url' => '', 'user' => 'Equipo de Desarrollo','image' => '','time' => '6 min','message' => 'Make Deploy?'] ]; <?= gudezi\notifications\NotificationsWidget::widget( [ 'options' => ['class' => 'sidebar-menu'], 'items' => $itemsMessage, 'directoryAsset' =>$directoryAsset, 'type' => gudezi\notifications\NotificationsWidget::TYPE_MESSAGE, ] ) ?>```