()
| 14 | } |
| 15 | |
| 16 | init() { |
| 17 | this.container = document.createElement('div'); |
| 18 | this.container.className = 'toast-container'; |
| 19 | document.body.appendChild(this.container); |
| 20 | } |
| 21 | |
| 22 | show(message, type = 'info', duration = 4000) { |
| 23 | const toast = document.createElement('div'); |