nextcloud-libraries / nextcloud-dialogs

Nextcloud dialog helpers https://npmjs.org/@nextcloud/dialogs
https://nextcloud-libraries.github.io/nextcloud-dialogs/
GNU Affero General Public License v3.0
19 stars 9 forks source link

Global toastify options #380

Open PVince81 opened 3 years ago

PVince81 commented 3 years ago

Make it possible to set toastify options globally so that one doens't need to pass in the same options everywhere.

One use case would be to pass in an offset for apps that have a top bar, see https://github.com/nextcloud/spreed/pull/5794 or even to switch to bottom aligned notifications for some layouts.

ChristophWurst commented 3 years ago

I'm fine if it's something stateless without side effects, e.g. like we did with https://github.com/nextcloud/nextcloud-logger#usage.

nickvergessen commented 1 year ago

I'm fine if it's something stateless without side effects, e.g. like we did with https://github.com/nextcloud/nextcloud-logger#usage.

That will not quite cut it for Talk at least: