-
-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Pause on hover feature #148 #203
Conversation
one more thing have doubts about this code in
shouldn't additional classes be applied too?
or those are meant only for custom components but in that case user must create his custom component instead of using provided once and add some styles. When i add additional classes i could use CSS to easy do this: Blazored.Toast.Server.-.Google.Chrome.2023-02-17.19-26-00.mp4 |
@chrissainty should I commit new changes or wait for a replay on my comments? |
@Cvijo My wife and I have just had a baby (2 days ago) so forgive the delay. I'll get to this ASAP |
@chrissainty omg !!! congratz !!! .. don't worry i thought i messed something with the comments :) ... its wonderful and take your time, nothing is more important than family! |
That's a great spot. Yes, additional classes should be passed through. I think it might be best to do that in another PR though as it's not directly related to the on pause issue. |
@chrissainty, when you will get some time I have one more thing to check with you before pushing changes, I see now I didn't put PauseProgressOnHover to the global instance Would it be wrong to change on Toast settings to nullable bool and leave it on global as not nullable
and then when building toast settings and of course everywhere when it is used i would have to change
Tbh it doesn't seems right to me like that, especially this part |
I just saw your DisableTimeout you did exactly as I described with a nullable bool on ToastSettings so I did the same on PauseProgressOnHover |
@chrissainty, i just saw there are conflicts now in this PR when you push DisableTimeout feature. Do I have to resolve this conflict, I cannot sync my fork because of those commits I did on this PR. I have the option to discard them, is that how should I do it and then re-commit this PR on your new main branch? I am not sure how this should be done :) |
- added better description/message to sample project 2 new buttons - added description to DisableTimout property - fixed BuildCustomToastSettings method with missing properties
* added ability to use toast position on each toast instance instead of single global position * - passing additinal css classes to toast (#207) * Pause on hover feature #148 (#203) --------- Co-authored-by: Matija Gluhak <matija.gluhak@vipdata.hr> Co-authored-by: Chris Sainty <chrissainty@users.noreply.github.com>
Added 2 new properties on ToastSettings available atm only on instance
bool PauseProgressOnHover
int ExtendedTimeout
If ExtendedTimeout is not set pause will continue on original counter, if ExtendedTimeout is set, new PeriodicTimer is created based on ExtendedTimeout value. If you mouse over again before toast is closed timer will reset to original ExtendedTimeout
Blazored.Toast.Server.-.Google.Chrome.2023-02-14.22-01-26.mp4
Resolves #148