KnockoutJS Toaster is a custom element toasts notification library built using knockout.js custom components.
Usage
- "toasts: toaster.toasts" is the mandatory param in params attribute of toast-container custom element.
- Using toaster object methods in JS, you can add different toasts which are automatically supplied to toast container.
- Override default options on toast-container custom element which are applicable to all toasts in the page.
- If you want, you can override particular option only for respective toast in javaScript using global toaster object only then that particular option is applicable to that respective toast.