Servoy / webnotifications

MIT License
1 stars 2 forks source link

Options appear to be ignored if title is not set #3

Closed SteveHawes closed 7 years ago

SteveHawes commented 7 years ago

I have tried to use the following call to display a progress bar as suggested in Issue #2 :-

plugins.webnotificationsToastr.success('message', 'title', {progressBar: true})

and this works fine but if I do not want a title to be shown and instead use the code:

plugins.webnotificationsToastr.success('message', null, {progressBar: true}); or plugins.webnotificationsToastr.success('message', '', {progressBar: true});

the additional options appear to be ignored and the default ones are used.

How can I set the additional options without requiring a title to be displayed?

Thanks Steve

SteveHawes commented 7 years ago

It also appears that the title and the message are reversed when being displayed. toastr

pruhsert commented 7 years ago

This

plugins.webnotificationsToastr.success('message', '', {progressBar: true});

should work now as expected