sciactive / pnotify

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

How to update text with new line \n #234

Closed tnusraddinov closed 8 years ago

tnusraddinov commented 8 years ago

Hi, I am trying to update text of existing PNotify object like

var a = new PNotify({
                    title: 'Info',
                    text: 'Line1 \<br> Line2',
                    hide: false
                });

Result: 'Info' Line1 Line2

To update text I am doing this: a.text_container.text('Line1 \<br> Line2');

Result: Info Line1
Line2

How to update it with 2 lines? Thanks

tnusraddinov commented 8 years ago

Ok I found solution: a.update("line1 \<br> line2"); :)