How to use the toastr.info function in toastr

To help you get started, we’ve selected a few toastr examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github CSCfi / exam / app / frontend / src / exam / editor / sections / sectionQuestion.component.ts View on Github external
esq => {
                            toast.info(this.$translate.instant('sitnet_question_saved'));
                            // apply changes back to scope
                            ng.extend(this.sectionQuestion, esq);
                        });
github CSCfi / exam / app / frontend / src / exam / collaborative / collaborativeExamListing.component.ts View on Github external
this.CollaborativeExam.createExam().then((exam: CollaborativeExam) => {
                toast.info(this.$translate.instant('sitnet_exam_created'));
                this.$location.path(`/exams/collaborative/${exam.id}/1`);
            }).catch(resp => toast.error(resp.data));
        }
github CSCfi / exam / app / frontend / src / reservation / admin / changeMachineDialog.component.ts View on Github external
.then((resp: angular.IHttpResponse) => {
                    toast.info(this.$translate.instant('sitnet_updated'));
                    this.close(
                        {
                            $value: {
                                msg: 'Accepted',
                                machine: resp.data
                            }
                        });
                }).catch(resp => toast.error(resp.data));
        }
github CSCfi / exam / app / frontend / src / exam / editor / publication / examPublication.component.ts View on Github external
this.Exam.updateExam(this.exam, config, this.collaborative).then(() => {
                if (!silent) {
                    toast.info(this.$translate.instant('sitnet_exam_saved'));
                }
                deferred.resolve();
            }, (err: string) => {
                toast.error(err);
github CSCfi / exam / app / frontend / src / reservation / reservationDetail.component.ts View on Github external
this.Reservation.cancelReservation(reservation).then(() => {
                this.reservations.splice(this.reservations.indexOf(reservation), 1);
                toast.info(this.$translate.instant('sitnet_reservation_removed'));
            }).catch(angular.noop);
        }

toastr

ToastrJS is a JavaScript library for Gnome / Growl type non-blocking notifications. jQuery is required. The goal is to create a simple core library that can be customized and extended.

MIT
Latest version published 7 years ago

Package Health Score

40 / 100
Full package analysis

Popular toastr functions