ereminmdev / yii2-noty
Alternative confirmation messages for Yii framework.
Installs: 10
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- php: >=7.0
- needim/noty: ^3.1
- yiisoft/yii2: ~2.0.1
This package is auto-updated.
Last update: 2024-03-07 11:52:55 UTC
README
Alternative alert - success - error - warning - information - confirmation messages for Yii framework.
Based on JavaScript library: https://ned.im/noty/#/
Install
composer require --prefer-dist ereminmdev/yii2-noty
Documentation
See for clientOptions: https://ned.im/noty/#/options
Use
Insert widget into view:
<?= \ereminmdev\yii2\noty\NotyWidget::widget([
'text' => 'Some text...',
]); ?>
or with more options:
<?= \ereminmdev\yii2\noty\NotyWidget::widget([
'text' => 'Some text...',
'type' => 'alert',
'layout' => 'topRight',
'theme' => 'bootstrap-v3',
'clientOptions' => [
...
],
]); ?>
See all client options: https://ned.im/noty/#/options