Testing Alpha
This commit is contained in:
15
resources/assets/vendor/libs/toastify/toastify.js
vendored
Normal file
15
resources/assets/vendor/libs/toastify/toastify.js
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
import Toastify from 'toastify-js';
|
||||
import 'toastify-js/src/toastify.css';
|
||||
|
||||
export const ToastifyDriver = {
|
||||
notify({ message = '', type = 'default', duration = 4000, position = 'right' }) {
|
||||
Toastify({
|
||||
text: message,
|
||||
duration: duration,
|
||||
gravity: 'top',
|
||||
position: position,
|
||||
className: `toastify-${type}`,
|
||||
close: true,
|
||||
}).showToast();
|
||||
},
|
||||
};
|
Reference in New Issue
Block a user