From cb6b1e05ffa9751cdb41f8eb4e306faed683a70d Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Fri, 17 Feb 2023 09:29:49 +0100 Subject: [PATCH] Aggiunto effetto btn x gauge (opzionale) --- EgwCoreLib.BlazorTest/Pages/Index.razor | 69 +++++++++++++++++++++---- EgwCoreLib.Razor/CircleGauge.razor | 21 ++++++-- EgwCoreLib.Razor/CircleGauge.razor.cs | 7 ++- 3 files changed, 83 insertions(+), 14 deletions(-) diff --git a/EgwCoreLib.BlazorTest/Pages/Index.razor b/EgwCoreLib.BlazorTest/Pages/Index.razor index d35cea1..cda409b 100644 --- a/EgwCoreLib.BlazorTest/Pages/Index.razor +++ b/EgwCoreLib.BlazorTest/Pages/Index.razor @@ -3,26 +3,77 @@ Index
-
- +
+
+
+
+ + + + + + + + + + + + Titolo + testo più lungo + + + + + +
+
+
+ @* + + + + *@
-
- +
+
+
+
+ + + + + + + + + + + + +
+
+
-
-
+
- +
- +
-
diff --git a/EgwCoreLib.Razor/CircleGauge.razor b/EgwCoreLib.Razor/CircleGauge.razor index d3663e4..ddc1f3d 100644 --- a/EgwCoreLib.Razor/CircleGauge.razor +++ b/EgwCoreLib.Razor/CircleGauge.razor @@ -2,13 +2,26 @@ - - @Titolo - @Testo - + @if (ShowCircleBtn) + { + + + + + + + + + + + } @if (showOuter) { } + + @Titolo + @Testo + diff --git a/EgwCoreLib.Razor/CircleGauge.razor.cs b/EgwCoreLib.Razor/CircleGauge.razor.cs index deacbeb..8d39107 100644 --- a/EgwCoreLib.Razor/CircleGauge.razor.cs +++ b/EgwCoreLib.Razor/CircleGauge.razor.cs @@ -19,6 +19,11 @@ namespace EgwCoreLib.Razor public string StyleTesto { get; set; } = "font-size: 1em; fill: gray;"; [Parameter] public string strokeColorVal { get; set; } = "#00FF66"; + /// + /// Indica se mostrare o meno il btn centrale + /// + [Parameter] + public bool ShowCircleBtn { get; set; } = false; /// /// Valore da rappresentare @@ -33,7 +38,7 @@ namespace EgwCoreLib.Razor /// - /// Spessore dei cerchida disegnare + /// Spessore dei cerchi da disegnare /// [Parameter] public int sWidth { get; set; } = 10;