我正在使用 Angular JS 1.4.1 和 Angular Toastr 1.7.0。
我应用中的大多数 toastr 都是默认的右上角,并且工作正常。
但是,我想用 positionClass: 'toast-top-full-width'
调用 ONE,但我无法让它工作。它仍然以默认设置打开我的应用程序配置。
$scope.tabLeave = function () {
toastr.warning('Warning', 'You have unsaved data.', {
closeButton: true,
positionClass: 'toast-top-full-width'
});
};
这里缺少什么?
最佳答案
this.toastr.info('No credit remaining', '', { disableTimeOut: true, closeButton: true });
关于javascript - 为 Angular Toastr 的单个实例设置选项?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37687895/