初始化一个实例很简单其实,在下面可以看到// 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'] }}); 文件目录······
暂无数据
猜你喜欢
更多»
项目推荐
更多»
PDF电子书
更多»
Java多线程编程核心技术
(2)
Linux命令详解词典.pdf
(5)
深入Python3中文版
(0)
百度SEO一本通.pdf
(0)
mysql必知必会.pdf
(2)
疯狂JAVA讲义 pdf电子书
(3)
C# 图解教程pdf电子书
(3)
研磨设计模式 pdf电子书
(0)