I have a component that can use. I just updated it to where you can either do the percentage complete yourself for a process, or you can set it to just increment on a periodic basis if you know about how long your process takes.
Nuget if you don't want to copy the code: DataJuggler.Blazor.Components
If you don't use the Nuget, you will need circle.scss:
(download from my GitHub)
https://github.com/DataJuggler/DataJuggler.Blazor.Components/blob/master/wwwroot/css/circle.scss
Author who deserves credit is:
Andre Firchow
http://circle.firchow.net/
Either way, you will need to add it to your _host.cshtml file:
Nuget package way is shown here:
<link href="~/_content/DataJuggler.Blazor.Components/css/circle.css" rel="stylesheet" />
Or if the circle.scss is in your project file
<link href="~/css/circle.css" rel="stylesheet" />
I tried to post ProgressBar.razor and Progress.razor.cs code, but stack overflow told me I went over your 30,000 character limit, which I find hard to believe as little code as it is, so here is the link:
https://github.com/DataJuggler/DataJuggler.Blazor.Components/blob/master/ProgressBar.razor
https://github.com/DataJuggler/DataJuggler.Blazor.Components/blob/master/ProgressBar.razor.cs
Usage:
<div class="progresscontainer3">
<ProgressBar Subscriber=this Increment="0" Interval="125"
ClientHandledIncrement="true"
CloseAtExtraPercent="0" Visible="@ShowProgress" Theme=ThemeEnum.Dark
Color=ColorEnum.Orange
Size=SizeEnum.Small OverrideThemeColorForText="true" TextColor="White">
</ProgressBar>
</div>
If you want to see a working example, Sign Up or upload an image, type in this query:
https://pixeldatabase.net
Hide
Total < 40
and click Apply.
Or there is a video here that also shows the progress bar:
https://youtu.be/K-reLOc1-Uo
I think it works pretty well.