BasMaterial UI logo
Notifications

Toast

Is a non-blocking notifications.

Types

Here, we will not reinvent the wheel. Toast is based in Toastr proyect.

For more info and view the documentation, go to: Toastr Doc

Success     Info     Warning     Error


// Show the success Toast
BasUI.Toast.success('Are you the 6 fingered man?','Success');

// Show the info Toast
BasUI.Toast.info('Are you the 6 fingered man?','Info');

// Show the warning Toast
BasUI.Toast.warning('Are you the 6 fingered man?','Warning');

// Show the error Toast
BasUI.Toast.error('Are you the 6 fingered man?','Error');
            

Methods

Clear     Remove


// Remove current toasts using animation
BasUI.Toast.clear();

// Immediately remove current toasts without using animation
BasUI.Toast.remove();