sciactive / pnotify

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

setting the id of a notify corresponding dom element #338

Closed fusionbeam closed 6 years ago

fusionbeam commented 6 years ago

Hi,

I need a higher degree of customization for notifications. (i.e. placing an img instead of a font driven icon) Was thinking to do that after the notification is created. (i.e. by replacing the content of the .ui-pnotify-icon div in this case).

Is there a way to set the id of the pnotify container at creation? Or how else would one be able to uniquely identify the corresponding div element? (in a scenario where there are potentially many notifications displayed at a given time).

Thank you for your great work, Rares

fusionbeam commented 6 years ago

never mind. I now see the elem property of the created object.