update factories and add tailwindcss template

This commit is contained in:
KHOUBZA Younes
2020-12-15 15:00:08 +01:00
parent fd6f43026b
commit 7e5116eaed
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -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' }
+2 -1
View File
@@ -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) {