Simple toast in plain javascript in no dependencies. Build with ECMAScript 6, for compatibility with older browsers use a transpiler like Babel
- Build in plain javascript (no dependencies)
- 4 types o toast (Success, Error, Info, Warning)
..under construction
const Toast = new ToastMessenger();
// Exemple
// Toast.success(description, title)
// Description
Toast.success('Simple toast in plain javascript in no dependencies');
// Description and title
let message = [
'Simple toast in plain javascript in no dependencies.', // description
'Simple toast' // title - title has default texts: "Success", "Error", "Info", "Warning"
];
Toast.success(...message);
MIT © Everton Strack