toastr

    4热度

    1回答

    我试着下面的代码,但什么也没有弹出,当我启动页面在浏览器中 <script> $(function() { //ready toastr.info('For more information, see our FAQ guide located below.'); }); </script>

    0热度

    1回答

    我喜欢我可以用toastr做什么的想法,但我似乎无法让它工作。 从官方网页... (1) Link to toastr.css (2) Link to toastr.js (3) Use toastr to display a toast for info, success, warning or error To install toastr, run the following comm

    1热度

    1回答

    我正在使用AngularJS-Toaster在我的应用中弹出通知。对于我使用bootstrap的前端。 使用类“容器”我有一个1200px的网格。里面我有一个与弹出通知的div。 我想调整弹出通知的宽度,使其与包含此烤面包机的容器的宽度相同。我看到烤面包机有一个参数'position-class'来改变位置,甚至宽度弹出窗口,比如'toast-top-full-width',但是使用它我会得到一个

    0热度

    2回答

    我想为我的应用程序中的弹出式通知做出响应式设计。我使用Angular Toaster进行通知。 例如,我在屏幕的中心找到烤面包机容器元素,但是使用绝对位置,所以对于较小的屏幕,通知保持在相同位置,因此不显示它们。我想通知相对于它们所在的父元素(在这里是容器网格)。我如何实现使用CSS?这是我的html代码: <body data-ng-controller="AppController">

    0热度

    1回答

    我发布了toastr.error("a message")但出现此错误。它发生在_setContainer当它$animate.enter().then(function())。 我错过了什么? function _setContainer(options) { if(container) { return containerDefer.promise; } // If the cont

    5热度

    3回答

    我有这个示例html文件。在这里,我正在使用角度烤面包通知。我在这里面临的问题是烤面包信息始终出现在右上角位置。 的script.js文件包含 angular.module('main', ['ngAnimate', 'toaster']).controller('myController', function($scope,toaster, $window) { $scope.po

    0热度

    2回答

    我正在使用jquery toastr。到目前为止,一切都很好。我可以显示和关闭敬酒罚款。 我希望能够唯一标识每个烤面包。并在onHidden函数中使用该唯一标识符。有没有人做过这个?关闭toast封闭的toast的toastr类或div的关闭事件是更好的选择吗? var mes = 'My name is Inigo Montoya.<input type="hidden" id="announc

    1热度

    1回答

    我试图让offline.js与toastr通知一起工作。 我有限的JS知识让我失望,但希望有些人能够对此有所了解。 我想要发生的事情 当连接从下往上时,我想在吐司警报中显示“重新连接成功”消息。 问题 我不明白如何检查offline.js中的状态。文档中提到可以使用这种方式: Offline.on(event,handler,context):绑定一个事件。事件: 起来:连接已经从下往上 下来了:

    0热度

    1回答

    我搜索了很多互联网上的意思,但我不能发现toastr.options toastr.option = { showDuration : its the time the toastr is visible. timeOut : ?? (I need help here from you guys) extendedTimeOut : ?? (I need help here from you

    4热度

    1回答

    <script> var options1 = { positionClass: 'toast-top-full-width', timeOut: 0}; toastr.error('Message1', 'Title1', options1); var options2 = { positionClass: 'toast-bottom-right', timeOu