simialbi/yii2-widget-growl

A widget to generate growl based notifications

Installs: 109

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 2

Open Issues: 0

Type:yii2-extension

1.2.0 2022-07-28 06:55 UTC

This package is auto-updated.

Last update: 2024-03-28 10:58:49 UTC


README

A widget that turns standard Bootstrap alerts into "Growl-like" notifications. This widget is a wrapper for the Bootstrap Growl plugin by ciedooy.

This extension is a bootstrap 4 port of Kartik Visweswaran's great extension: yii2-widget-growl

Installation

The preferred way to install this extension is through composer.

Either run

$ php composer.phar require --prefer-dist simialbi/yii2-widget-growl

or add

"simialbi/yii2-widget-growl": "*"

to the require section of your composer.json

Usage

<?php
use simialbi\yii2\growl\Growl;

echo Growl::widget([
	'type' => Growl::TYPE_SUCCESS,
	'icon' => 'fa fa-exclamation-triangle',
	'title' => 'Note',
	'body' => 'This is a successful growling alert.'
]);

Example Usage

License

yii2-widget-growl is released under MIT license. See bundled LICENSE for details.