pnotify
pnotify copied to clipboard
PNotify.defaultStack not work
how to set default PNotify.defaultStack? i did this but didnt get any result
What version are you using?
v4
Can you show me your code? I'm not sure what you're trying to do.
PNotify.defaultStack = { "dir1": "down", "dir2": "left", "firstpos1": 25, "firstpos2": 25, "spacing1": 36, "spacing2": 36, "push": "top", // "context": document.body };
As long as it's not on one line like that (so the comment doesn't comment out the closing }, that should work. Are you running it after loading PNotify?
yes,can you send sample of this ?that's the position in top left and a little bit down
Try it like this:
document.addEventListener('DOMContentLoaded', function() {
PNotify.defaultStack = { "dir1": "down", "dir2": "left", "firstpos1": 25, "firstpos2": 25, "spacing1": 36, "spacing2": 36, "push": "top", "context": document.body };
});