You've already forked php-flasher
mirror of
https://github.com/php-flasher/php-flasher.git
synced 2026-04-05 12:32:55 +01:00
update factories and add tailwindcss template
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
services:
|
||||
flasher.toastr:
|
||||
parent: 'flasher.abstract_factory'
|
||||
parent: 'flasher.notification_factory'
|
||||
class: Flasher\Toastr\Prime\ToastrFactory
|
||||
tags:
|
||||
- { name: 'flasher.factory', alias: 'toastr' }
|
||||
|
||||
@@ -4,7 +4,8 @@ PHPFlasher.addFactory('toastr', (function () {
|
||||
var exports = {};
|
||||
|
||||
exports.render = function (data) {
|
||||
toastr[data.type](data.message, data.title, data.options);
|
||||
var notification = data.notification;
|
||||
toastr[notification.type](notification.message, notification.title, notification.options);
|
||||
};
|
||||
|
||||
exports.renderOptions = function (options) {
|
||||
|
||||
Reference in New Issue
Block a user