This code will help you to understand How to show a progress bar based on the server function execution time in Blazor.
The HTML “progress” element is used to show the progress. In the following code example, start and stop of progress can be executed on button click.
<progress value="@progressValue" max="100" style="width: 100%">@(progressValue.ToString() + " %")</progress> <button @onclick="@startProgress">Start</button> @code { private int progressValue { get; set; } private void startProgress() { for (int i = 0; i < 1000; i++) { this.progressValue = i; } } }
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
The HTML “progress” element is used to show the progress. In the following code example, start and stop of progress can be executed on button click.
need an explanation for this answer? contact us directly to get an explanation for this answer