【问题标题】:Missing PNotify closer缺少 PNotify 关闭
【发布时间】:2017-03-02 07:11:55
【问题描述】:

我正在使用Pnotify 插件,但没有显示关闭按钮。

new PNotify({
                title: 'Sucesso',
                text: response.message,
                type: 'success',
                styling: 'bootstrap3',
                closer: true,
                labels: {close: "Fechar", stick: "Manter"}
            });

对这种行为有什么想法吗?

包含的文件有: pnotify.css pnotify.js

【问题讨论】:

    标签: php jquery html twitter-bootstrap-3 pnotify


    【解决方案1】:

    阅读documentation of Pnotify 后,您必须将closer 包含在buttons {} 选项和labels 中。

    new PNotify({
        title: 'Sucesso',
        text: response.message,
        type: 'success',
        styling: 'bootstrap3',
        buttons: { closer: true, 
            labels: {close: "Fechar", stick: "Manter"}
        },
    });
    

    【讨论】:

    • 我意识到我的引导主题附带的插件无法正常工作。我从网站上再次下载了它。现在正在工作!我现在不知道该怎么处理这个问题
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2013-08-25
    • 2013-04-06
    • 2020-10-18
    • 2016-10-28
    • 2011-05-12
    • 2018-09-25
    • 2022-01-20
    相关资源
    最近更新 更多