54 lines
2.0 KiB
JavaScript
54 lines
2.0 KiB
JavaScript
/*
|
|
|--------------------------------------------------------------------------
|
|
| Notification Toast link
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Import Notification Function.
|
|
|
|
|
*/
|
|
|
|
import "./message.js";
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Toastra Notification Toast config
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Set your configuration for the Notification Toasts..
|
|
|
|
|
| type: 'default', // default, success, info, warning, error, update
|
|
| mode: 'default-mode', // default-mode, light-mode, dark-mode
|
|
| position: 'top-right', // top-left, top-center, top-right, bottom-left, bottom-center, bottom-right
|
|
| duration: 3000, // duration in milliseconds 3000 = 3s
|
|
| selector: 'body', // Select Tag, Class or id to display the Notification div
|
|
| icon: null, // Set true for default-icons or insert an SVG or image with <img src="..." ... >
|
|
| progressbar: false, // display Close Progressbar = true / false
|
|
| close: false, // display Close button = true / false
|
|
| title: 'Hi Guys', // set custom displayed Text
|
|
| text: 'Hi Guys', // set custom displayed Text
|
|
| onComplete: null, // Callback funktion
|
|
| onCompleteParams: {}, // Callback function Parameter
|
|
| offset: { // Set your own offset for the Notification div.
|
|
| top: '',
|
|
| left: '',
|
|
| right: '',
|
|
| bottom: '',
|
|
| },
|
|
| style: { // Set your own style for the Notification div.
|
|
| color: '',
|
|
| background: '',
|
|
| },
|
|
| animation: 'slide-right', // slide-right, slide-left, slide-up, slide-down
|
|
| classname: '' // Set custom classes
|
|
|
|
|
|
|
|
*/
|
|
|
|
toastra.config({
|
|
mode: "glass-mode",
|
|
icon: true,
|
|
position: "bottom-center",
|
|
progressbar: true,
|
|
animation: "slide-up",
|
|
});
|