// Notificaciones toast
function addToast(titulo,texto,tipo){
switch (tipo) {
case 'success':
toastr.success(texto, titulo, {
iconClass: 'toast-success',
timeOut: 4000,
positionClass: "toast-top-right",
});
break;
case 'error':
toastr.error(texto, titulo, {
iconClass: 'toast-error',
timeOut: 4000,
positionClass: "toast-top-right",
});
break;
case 'warning':
toastr.warning(texto, titulo, {
iconClass: 'toast-warning',
timeOut: 4000,
positionClass: "toast-top-right",
});
break;
case 'info':
toastr.info(texto, titulo, {
iconClass: 'toast-info',
timeOut: 4000,
positionClass: "toast-top-right",
});
break;
}
}
¿Eres nuev@?