我正在使用Angular JS 1.4.1和Angular Toastr 1.7.0。
我的应用程序中大多数toastr都是默认的右上角,而且运行良好。
然而,我想使用positionClass: 'toast-top-full-width'
来调用其中一个,但是我无法使其正常工作。它仍然在我的应用程序配置中设置的默认位置打开。
$scope.tabLeave = function () {
toastr.warning('Warning', 'You have unsaved data.', {
closeButton: true,
positionClass: 'toast-top-full-width'
});
};
我在这里缺少什么?
toastr.info('What a nice apple button', 'Button spree', { closeButton: true, closeHtml: '<button></button>' });
- Steve