imports/ui/helpers/toasts.js
// a function to display nice messages (toasts) to the user
a function to display nice messages (toasts) to the user
a function to display nice messages ( toasts ) to the user
function toast (msg, icon, iconcolor) {
  if (icon === undefined) {
    icon = "";
  } else {
    if (iconcolor === undefined) iconcolor = "white";
    icon = '<i class="material-icons left ' + iconcolor + '-text">' + icon + '</i> ';
  }
  Materialize.toast(icon + msg, 6000);
}
function toast ( msg , icon , iconcolor ) { if ( icon === undefined ) { icon = "" ; } else { if ( iconcolor === undefined ) iconcolor = "white" ; icon = '<i class="material-icons left ' + iconcolor + '-text">' + icon + '</i> ' ; } Materialize . toast ( icon + msg , 6000 ) ; }
a function to display nice messages (toasts) to the user
a function to display nice messages ( toasts ) to the user