Merge branch 'release/AddTitleOnLoading'

This commit is contained in:
Samuele Locatelli
2023-10-24 09:09:29 +02:00
4 changed files with 7 additions and 22 deletions
@@ -13,14 +13,13 @@ namespace EgwCoreLib.BlazorTest.Pages
protected async Task StartLongTimer()
{
maxVal = numSteps * 10;
double stdWait = expTime / numSteps;
int nextWait = 1000;
int stepVal = maxVal / numSteps;
// imposto i valori x progress..
maxVal = 100;
expTimeMSec = (int)(stdWait * 1000);
//nextVal = stepVal;
//currVal = 0;
for (int currStep = 1; currStep <= numSteps; currStep++)
{
// aggiorno valori
+6
View File
@@ -45,6 +45,12 @@ namespace EgwCoreLib.Razor
[Parameter]
public CtrlSize DisplaySize { get; set; } = CtrlSize.Normal;
/// <summary>
/// Titolo da mostrare nel pannello
/// </summary>
[Parameter]
public string Title { get; set; } = "loading data";
#endregion Public Properties
}
}
-14
View File
@@ -1,14 +0,0 @@
<div class="row p-3 m-2">
<div class="col-12 text-center mt-5 py-5 alert alert-primary">
<div class="row">
<div class="col-6 text-end">
<div class="spinner-grow" role="status" style="width: 3rem; height: 3rem;">
<span class="visually-hidden">Loading...</span>
</div>
</div>
<div class="col-6">
<h3>loading data</h3>
</div>
</div>
</div>
</div>
-6
View File
@@ -1,6 +0,0 @@
<div class="row p-2 m-2">
<div class="col-12 text-center mt-2 py-2 alert alert-primary">
<b>loading data</b>
<i class="fas fa-spinner fa-spin fa-2x"></i>
</div>
</div>