mirkhamidov/yii2-alert-autohide

Alert widget for flash messages using bootstrap for yii framework 2.0

Installs: 807

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 1

Open Issues: 0

Type:yii2-extension

1.0 2016-11-12 20:15 UTC

This package is auto-updated.

Last update: 2024-10-29 02:07:27 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]) ?>