Home icon indicating copy to clipboard operation
Home copied to clipboard

Request: Toastr Notifications

Open mariohik opened this issue 5 years ago • 9 comments

Can we have a Toastr Extension? I'm trying to implement myself, but I still have a lot to learn.

mariohik avatar Jul 14 '18 12:07 mariohik

I'm trying to learn about extensions, so I decided to create a project: https://github.com/arapinha/Blazor.Toastr

mariohik avatar Jul 17 '18 12:07 mariohik

From the gitter discussion, There's also https://github.com/sotsera/sotsera.blazor.toaster

ransagy avatar Jul 17 '18 12:07 ransagy

I'm onboarding HTML5 Notifications API project from @vertonghenb here https://github.com/BlazorExtensions/Notifications

The original repo: https://github.com/vertonghenb/Blazor.Notifications

He is porting his project to our structure and soon will be a nuget package out.

galvesribeiro avatar Jul 17 '18 13:07 galvesribeiro

Haven't had a chance to play with HTML5 Notifications. How customizable are they compared to JS solutions? It seems like they are very static, design wise.

ransagy avatar Jul 17 '18 13:07 ransagy

~I'm adding ToastR as well. I have it done for a while, just didnt had time to push it out. Gimme a bit of time. Will let u guys know.~

galvesribeiro avatar Jul 17 '18 13:07 galvesribeiro

I just realized that it requires JQuery, so I'm dropping it for now. Will implement one pure in C# when I got time.

galvesribeiro avatar Jul 17 '18 14:07 galvesribeiro

@ransagy They're not that customizable, I tried to implement the spec in the Blazor.Notifications repo. However since I'm a strong believer in testability I designed it to have a DI first approach and pass on the static.

vertonghenb avatar Jul 17 '18 14:07 vertonghenb

Yeah, avoid statics at all cost 👍

galvesribeiro avatar Jul 17 '18 14:07 galvesribeiro

Did we have any updates on this?

If that is not going to be maintained, I'll drop the repo for now.

Thanks!

galvesribeiro avatar Sep 26 '18 15:09 galvesribeiro