Noty Manager 提示工具插件

这篇博客介绍了如何使用NotyManager初始化一个通知管理器,详细列出了配置选项和默认值,包括气泡位置、最大显示数量、通知容器、包装器设置以及回调函数等。此外,还提到了当使用开源Noty插件时的特定设置。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

下载地址

初始化一个实例很简单其实,在下面可以看到// NotyManager initializationwindow.NotyManager = new $.NotyManager($("#notifications"), { bubble : { top : 10, left: -2, showZero: true }, max: 30, container: $("#notification-list"), wrapper: "

", emptyHTML: "
There is no notification in here
", callback: { onOpen: function() {}, onClose: function() {} }, useNoty: true, noty: { layout: "bottomLeft", timeout: false, closeWith: ["button"] }});下面列出了选项和默认值;// NotyManager initializationwindow.NotyManager = new $.NotyManager($("#notifications") /* this is the bubble attach element */, { // bubble options bubble : { top : 10, // default: 10 left: -2, // default: -2 showZero: true // default: false }, // max bubble count, if the count is bigger than 30 it will show 30+ max: 30, // default: 20 // this this the notification container container: $("#notification-list"), // default:
// this is the wrapper of the a single notification wrapper: "
", emptyHTML: "
There is no notification in here
", // default: as is callback: { // This callback is fired each time a notification list is opened onOpen: function() { // default: function(){} // NotyManager instance accessible with this variable in this scope console.log("opened", this); }, // This callback is fired each time a notification list is closed onClose: function() { // default: function(){} // NotyManager instance accessible with this variable in this scope console.log("closed", this); } }, // Below settings for the using open source Noty plugin // if true notifications also appears on the screen useNoty: true, // default: false // this settings used when if useNoty is `true` noty: { layout: "bottomLeft", // default: "bottomLeft" timeout: false, // default: false closeWith: ["button"] // default: ["button"] }});

246_63270f8da023d7e01be3aabddf5ce261.png

dd:

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值