Leo Nogueira Leo Nogueira - 1 month ago 19
PHP Question

Missing PNotify closer

Im using Pnotify plugin, but the closer button is not showing.

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


Any ideas about this behavior?

generated pnotify example

Included files are:
pnotify.css
pnotify.js

Answer

After read the documentation of Pnotify you have to wrap closer inside the buttons {} options and labels too.

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