Skip to content

Commit bbcbb7f

Browse files
authored
Update readme.md
1 parent c1804d0 commit bbcbb7f

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

readme.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,30 @@ You can provide a single button within an object, or an array of buttons.
8080
],
8181
});
8282
```
83+
84+
### All Options
85+
```javascript
86+
new SimpleToast({
87+
title: '',
88+
text: '',
89+
buttons: [...button] || {
90+
text: '',
91+
className: '',
92+
css: {},
93+
onclick() {},
94+
},
95+
footer: '',
96+
className: '',
97+
css: {
98+
toast: {},
99+
title: {},
100+
button: {},
101+
},
102+
timeout: 0,
103+
onClose(reason, toast) {},
104+
});
105+
106+
SimpleToast.version; // Version in number form
107+
SimpleToast.versionString; // Readable string of version
108+
SimpleToast.count(); // Numer of toasts open
109+
```

0 commit comments

Comments
 (0)