rsmike / yii2-noty
Noty3 widget for Yii2
Installs: 193
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 0
Type:yii2-extension
Requires
- needim/noty: ^3.0
- yiisoft/yii2: ~2.0
This package is auto-updated.
Last update: 2025-03-18 23:22:16 UTC
README
Noty widget for Yii2
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist rsmike/yii2-noty "*"
or add
"rsmike/yii2-noty": "*"
to the require section of your composer.json
file.
Usage
Once the extension is installed, simply use it in your layout file like this:
<?= NotyWidget::widget([ 'typeOptions' => [ 'success' => ['timeout' => 3000], 'info' => ['timeout' => 3000], ], 'options' => [ 'progressBar' => true, 'timeout' => false, 'layout' => 'topCenter', 'dismissQueue' => true, 'theme' => 'relax' ], ]) ?>