Download the PHP package maxodrom/yii2-toastr2 without Composer
On this page you can find all versions of the php package maxodrom/yii2-toastr2. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download maxodrom/yii2-toastr2
More information about maxodrom/yii2-toastr2
Files in maxodrom/yii2-toastr2
Package yii2-toastr2
Short Description Simple javascript toast notifications
License BSD-3-Clause
Homepage https://github.com/lavrentiev/yii2-toastr
Informations about the package yii2-toastr2
Yii2 - Javascript Toast Notifications
Simple javascript toast notifications - Javascript library for non-blocking notifications. jQuery is required. The goal is to create a simple core library that can be customized and extended.
Установка
Расширение устанавливается с помощью Composer интсрукция по установке Composer
Установка расширения через Composer, выполнить следующую команду:
или (master)
или внести изменения в секцию require в composer.json и выполнить composer update
или (master)
Уведомления Notification::widget()

Также присутствует возможность настройки произвольного уведомления, по параметрам предусмотренным разработчиками Toastr by CodeSeven

Уведомления NotificationFlash::widget()
Подключение осуществляеться глобально допустим в layouts проекта.
Также присутствует возможность настройки уведомлений, по параметрам предусмотренным разработчиками Toastr by CodeSeven


Допустимые параметры
| Параметр | Значение по умолчанию | Допустимые значения | Описание |
|---|---|---|---|
| type | info |
info, error, success, warning |
Тип уведомления |
| title | --- | --- | Заголовок уведомления |
| message | Simple javascript toast notifications |
--- | Текст уведомления |
| options | [] |
Подробней... | Дополнительные опции |
Допустимые константы типов:
Допустимые константы положения:
Демонстрация
- Demo can be found at http://codeseven.github.io/toastr/demo.html