simialbi/yii2-widget-toastr

toastr is a Javascript library for non-blocking notifications implemented as yii2 widget.

1.1.0 2022-07-28 06:57 UTC

This package is auto-updated.

Last update: 2024-08-28 11:40:09 UTC


README

Latest Stable Version Total Downloads License

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

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.

Acknowledgements