f3oall / awesome-notifications

Lightweight JavaScript Notifications Library
https://f3oall.github.io/awesome-notifications/
MIT License
286 stars 40 forks source link

[Suggestion] Override options for each call #9

Closed pdcmoreira closed 5 years ago

pdcmoreira commented 5 years ago

My suggestion is that, for each individual call, an options object could be passed, overriding the initialization ones. Something like:

this.$awn.tip('Hello world!', options)

Or, at least, we should be able to pass the title (for translation purposes), like:

this.$awn.success('Hello world!', 'Sucesso')
f3oall commented 5 years ago

Entire options override per call will be implemented in version 3.0.0