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 flasherjs and flasher symfony bundle
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
PHPFlasher.addFactory('noty', (function () {
|
||||
'use strict';
|
||||
|
||||
var exports = {};
|
||||
|
||||
exports.render = function (data) {
|
||||
var options = {
|
||||
text: data.message,
|
||||
type: data.type,
|
||||
...data.options
|
||||
}
|
||||
|
||||
new Noty(options).show();
|
||||
};
|
||||
|
||||
exports.renderOptions = function (options) {
|
||||
Noty.overrideDefaults(options);
|
||||
};
|
||||
|
||||
return exports;
|
||||
})());
|
||||
Reference in New Issue
Block a user