mirkhamidov / yii2-alert-autohide
Alert widget for flash messages using bootstrap for yii framework 2.0
Package info
github.com/m1roff/yii2-alert-autohide
Type:yii2-extension
pkg:composer/mirkhamidov/yii2-alert-autohide
1.0
2016-11-12 20:15 UTC
Requires
- yiisoft/yii2: *
- yiisoft/yii2-bootstrap: ^2.0.0
This package is auto-updated.
Last update: 2026-03-01 00:10:48 UTC
README
Extended core widget with autohide functionality.
Installation
The preferred way to install this extension is through composer.
Either run
composer require mirkhamidov/yii2-alert-autohide "*"
or add
"mirkhamidov/yii2-alert-autohide": "*"
to the require section of your composer.json file.
Usage
Once the extension is installed, simply use it in your code by :
without auto-hide:
<?= \mirkhamidov\alert\Alert::widget() ?>
with auto-hide after 5000ms:
<?= \mirkhamidov\alert\Alert::widget(['delay' => 5000]) ?>