+@*
@if (periodo != null)
{
@@ -17,14 +18,52 @@
-
+
*@
+
+
@code {
+#if false
+
protected DtUtils.Periodo? periodo { get; set; } = new DtUtils.Periodo(DtUtils.PeriodSet.ThisTrim);
protected async Task setPeriodo(DtUtils.Periodo newPeriodo)
{
- await Task.Delay(1);
- periodo = newPeriodo;
+ await Task.Delay(1);
+ periodo = newPeriodo;
}
+#endif
+
+ public List
colors = new List();
+
+ public List Data = new List();
+
+ public List Labels = new List();
+
+ protected override async Task OnInitializedAsync()
+ {
+ await Task.Delay(1);
+ }
+
+ protected override async Task OnParametersSetAsync()
+ {
+ await ReloadData();
+ await Task.Delay(1);
+ }
+
+ protected async Task ReloadData()
+ {
+ Data.Clear();
+ Labels.Clear();
+ colors.Clear();
+ for (int x = 0; x < 5; x++)
+ {
+ Data.Add(x);
+ Labels.Add($"test n#: {x} - {x}min");
+ colors.Add(new DoughnutStyling("orange", "ccc"));
+ colors.Add(new DoughnutStyling("#2874A6", "ccc"));
+ }
+ await Task.Delay(1);
+ }
+
}
diff --git a/EgwCoreLib.BlazorTest/Pages/_Layout.cshtml b/EgwCoreLib.BlazorTest/Pages/_Layout.cshtml
index aebdb89..75b7d29 100644
--- a/EgwCoreLib.BlazorTest/Pages/_Layout.cshtml
+++ b/EgwCoreLib.BlazorTest/Pages/_Layout.cshtml
@@ -29,5 +29,8 @@
+
+
+