context |
Default value : require.context('./', true, /\.spec\.ts$/)
|
require |
Type : any
|
context |
Default value : require.context('./', true, /\.spec\.ts$/)
|
require |
Type : any
|
environment |
Type : object
|
Default value : {
production: true
}
|
environment |
Type : object
|
Default value : {
production: false
}
|
ToastDefaults |
Type : object
|
Default value : {
global: {
newOnTop: true,
maxOnScreen: 8,
maxAtPosition: 8,
filterDuplicates: false
},
toast: {
type: SnotifyStyle.simple,
showProgressBar: true,
timeout: 2000,
closeOnClick: true,
pauseOnHover: true,
bodyMaxLength: 150,
titleMaxLength: 16,
backdrop: -1,
icon: null,
iconClass: null,
html: null,
position: SnotifyPosition.rightBottom,
animation: { enter: 'fadeIn', exit: 'fadeOut', time: 400 }
},
type: {
[SnotifyStyle.prompt]: {
timeout: 0,
closeOnClick: false,
buttons: [
{ text: 'Ok', action: null, bold: true },
{ text: 'Cancel', action: null, bold: false }
],
placeholder: 'Enter answer here...',
type: SnotifyStyle.prompt
},
[SnotifyStyle.confirm]: {
timeout: 0,
closeOnClick: false,
buttons: [
{ text: 'Ok', action: null, bold: true },
{ text: 'Cancel', action: null, bold: false }
],
type: SnotifyStyle.confirm
},
[SnotifyStyle.simple]: {
type: SnotifyStyle.simple
},
[SnotifyStyle.success]: {
type: SnotifyStyle.success
},
[SnotifyStyle.error]: {
type: SnotifyStyle.error
},
[SnotifyStyle.warning]: {
type: SnotifyStyle.warning
},
[SnotifyStyle.info]: {
type: SnotifyStyle.info
},
[SnotifyStyle.async]: {
pauseOnHover: false,
closeOnClick: false,
timeout: 0,
showProgressBar: false,
type: SnotifyStyle.async
}
}
}
|
Snotify default configuration object |