sciactive / pnotify

Beautiful JavaScript notifications with Web Notifications support.
https://sciactive.com/pnotify/
Apache License 2.0
3.65k stars 513 forks source link

Would be very cool if we could pass the position of the alert as a parameter. #297

Closed guilherme-ramalho closed 7 years ago

hperrin commented 7 years ago

I'm not sure what you mean. If you want an alert just positioned somewhere, you can use the stack option and pass in an object literal. Doing that means it would be in its own stack, and you couldn't put any other notices in that stack.

hperrin commented 7 years ago

So, something like:

new PNotify({
  text: "Notice",
  stack: {"dir1": "down", "dir2": "right", "firstpos1": myYPos, "firstpos2": myXPos}
});