0

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

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

关于这种行为的任何想法?

生成的 pnotify 示例

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

4

1 回答 1

1

阅读Pnotify 的文档后,您也必须将选项包含closerbuttons {}选项labels中。

new PNotify({
    title: 'Sucesso',
    text: response.message,
    type: 'success',
    styling: 'bootstrap3',
    buttons: { closer: true, 
        labels: {close: "Fechar", stick: "Manter"}
    },
});
于 2016-10-20T10:38:05.783 回答