view source
01
toastr.error('Error','Error Title',{
02
03
04
tapToDismiss:true,
05
06
07
toastClass:'toast',
08
09
10
containerId:'toast-container',
11
12
13
debug:false,
14
15
16
showMethod:'fadeIn',
17
18
19
showDuration: 300,
20
21
22
showEasing:'swing',
23
24
25
onShown: undefined,
26
onHidden: undefined,
27
28
29
hideMethod:'fadeOut',
30
31
32
hideDuration: 1000,
33
34
35
hideEasing:'swing',
36
37
38
closeMethod:false,
39
40
41
closeDuration:false,
42
43
44
closeEasing:false,
45
46
47
extendedTimeOut: 1000,
48
49
50
iconClasses: {
51
error:'toast-error',
52
info:'toast-info',
53
success:'toast-success',
54
warning:'toast-warning'
55
},
56
iconClass:'toast-info',
57
58
59
60
61
positionClass:'toast-top-right',
62
63
64
timeOut: 5000,
65
66
67
titleClass:'toast-title',
68
69
70
messageClass:'toast-message',
71
72
73
escapeHtml:false,
74
75
76
target:'body',
77
78
79
closeHtml:'<button type="button">×</button>',
80
81
82
newestOnTop:true,
83
84
85
preventDuplicates:false,
86
87
88
progressBar:false
89
90
})