simialbi / yii2-widget-toastr
toastr is a Javascript library for non-blocking notifications implemented as yii2 widget.
Installs: 106
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 1
Open Issues: 0
Type:yii2-widget
Requires
- php: >=7.3
- bower-asset/toastr: ^2.1.0
- yiisoft/yii2: ^2.0.0
Requires (Dev)
This package is auto-updated.
Last update: 2024-11-28 12:12:17 UTC
README
Installation
The preferred way to install this extension is through composer.
Either run
$ php composer.phar require --prefer-dist simialbi/yii2-widget-toastr
or add
"simialbi/yii2-widget-toastr": "^1.0.0"
to the require
section of your composer.json
Demo
- Demo can be found at http://codeseven.github.io/toastr/demo.html
- Demo using FontAwesome icons with toastr
Plugin docs
All options and events can be found on the plugins repository page.
Example Usage
<?php use simialbi\yii2\Toastr; Toastr::widget([ 'type' => Toastr::TYPE_SUCCESS, 'title' => 'This is a toast', 'message' => 'Example toast message', 'closeButton' => true, 'debug' => false, 'newestOnTop' => false, 'position' => Toastr::POSITION_BOTTOM_RIGHT, 'progressBar' => true // [...] ]);
Options
License
yii2-widget-toastr is released under MIT license. See bundled LICENSE for details.