From 36be2d83f534dc029d1c5b9cabf045bf5283b130 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Tue, 24 Oct 2023 08:11:32 +0200 Subject: [PATCH] Update loader: parametro titolo --- EgwCoreLib.BlazorTest/Pages/TestLoading.razor.cs | 3 +-- EgwCoreLib.Razor/LoadingData.razor.cs | 6 ++++++ EgwCoreLib.Razor/LoadingDataGrow.razor | 14 -------------- EgwCoreLib.Razor/LoadingDataSmall.razor | 6 ------ 4 files changed, 7 insertions(+), 22 deletions(-) delete mode 100644 EgwCoreLib.Razor/LoadingDataGrow.razor delete mode 100644 EgwCoreLib.Razor/LoadingDataSmall.razor diff --git a/EgwCoreLib.BlazorTest/Pages/TestLoading.razor.cs b/EgwCoreLib.BlazorTest/Pages/TestLoading.razor.cs index eaaecf0..3648af6 100644 --- a/EgwCoreLib.BlazorTest/Pages/TestLoading.razor.cs +++ b/EgwCoreLib.BlazorTest/Pages/TestLoading.razor.cs @@ -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 diff --git a/EgwCoreLib.Razor/LoadingData.razor.cs b/EgwCoreLib.Razor/LoadingData.razor.cs index 60b8647..842c2b2 100644 --- a/EgwCoreLib.Razor/LoadingData.razor.cs +++ b/EgwCoreLib.Razor/LoadingData.razor.cs @@ -45,6 +45,12 @@ namespace EgwCoreLib.Razor [Parameter] public CtrlSize DisplaySize { get; set; } = CtrlSize.Normal; + /// + /// Titolo da mostrare nel pannello + /// + [Parameter] + public string Title { get; set; } = "loading data"; + #endregion Public Properties } } \ No newline at end of file diff --git a/EgwCoreLib.Razor/LoadingDataGrow.razor b/EgwCoreLib.Razor/LoadingDataGrow.razor deleted file mode 100644 index 37c4dc2..0000000 --- a/EgwCoreLib.Razor/LoadingDataGrow.razor +++ /dev/null @@ -1,14 +0,0 @@ -
-
-
-
-
- Loading... -
-
-
-

loading data

-
-
-
-
diff --git a/EgwCoreLib.Razor/LoadingDataSmall.razor b/EgwCoreLib.Razor/LoadingDataSmall.razor deleted file mode 100644 index 8362fbb..0000000 --- a/EgwCoreLib.Razor/LoadingDataSmall.razor +++ /dev/null @@ -1,6 +0,0 @@ -
-
- loading data - -
-
\ No newline at end of file