Skip to content

Commit fba1fb3

Browse files
authored
Update readme.md
1 parent f21bb8c commit fba1fb3

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

readme.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,19 +90,24 @@ const toast = new SimpleToast({
9090
text: '',
9191
className: '',
9292
css: {},
93-
onclick() {
93+
onclick(event, toast) {
9494
// this; // toast reference
9595
},
9696
},
9797
footer: '',
98-
className: '',
98+
className: '' || [''] || {
99+
toast: '' || [''],
100+
button: '' || [''],
101+
},
99102
css: {
100103
toast: {},
101104
title: {},
102105
button: {},
103106
},
104107
timeout: 0, // Close toast after # milliseconds
105-
onClose(reason, toast) {},
108+
onClose(reason, toast) {
109+
// this; // toast reference
110+
},
106111
});
107112

108113
// Methods on toast

0 commit comments

Comments
 (0)