4
0
Fork 0
dcat-admin/resources/assets/dcat/js/extensions/Toastr.js

28 lines
629 B
PHP

export default class Toastr {
constructor(Dcat) {
let _this = this;
Dcat.success = _this.success;
Dcat.error = _this.error;
Dcat.info = _this.info;
Dcat.warning = _this.warning;
}
success(message, title, options) {
toastr.success(message, title, options);
}
error(message, title, options) {
toastr.error(message, title, options);
}
info(message, title, options) {
toastr.info(message, title, options);
}
warning(message, title, options) {
toastr.warning(message, title, options);
}
}