Toast
Toast is not a component to be used a standalone HTML element. Instead it is to be used as JS code on any element that invokes a Toast.
| Example | Code |
|---|---|
new Toast('This is neutral message.') |
|
new Toast('This is info message.',{type:'info'}) |
|
new Toast('This is warning message.',{type:'warning'})" |
|
new Toast('This is error message.',{type:'error',sticky:true})" |
|
new Toast('This is success message.',{type:'success',timeout:10000})" |