diff --git a/EgwCoreLib.BlazorTest/Pages/FetchData.razor b/EgwCoreLib.BlazorTest/Pages/FetchData.razor
index ce40e5a..9c580cd 100644
--- a/EgwCoreLib.BlazorTest/Pages/FetchData.razor
+++ b/EgwCoreLib.BlazorTest/Pages/FetchData.razor
@@ -18,10 +18,10 @@ else
- | Date |
- Temp. (C) |
- Temp. (F) |
- Summary |
+ Date |
+ Temp. (C) |
+ Temp. (F) |
+ Summary |
@@ -42,7 +42,22 @@ else
private WeatherForecast[]? forecasts;
protected override async Task OnInitializedAsync()
+ {
+ await ReloadAllData();
+ }
+
+ protected async Task ReloadAllData()
{
forecasts = await ForecastService.GetForecastAsync(DateTime.Now);
}
+
+ private bool sortAsc = true;
+ private string sortField = "";
+
+ protected async Task SortRequested(Sorter.SortCallBack e)
+ {
+ sortField = e.ParamName;
+ sortAsc = e.IsAscending;
+ await ReloadAllData();
+ }
}
diff --git a/EgwCoreLib.BlazorTest/Pages/_Layout.cshtml b/EgwCoreLib.BlazorTest/Pages/_Layout.cshtml
index 4e1d681..aebdb89 100644
--- a/EgwCoreLib.BlazorTest/Pages/_Layout.cshtml
+++ b/EgwCoreLib.BlazorTest/Pages/_Layout.cshtml
@@ -9,6 +9,7 @@
+
diff --git a/EgwCoreLib.BlazorTest/libman.json b/EgwCoreLib.BlazorTest/libman.json
index 03b77f0..9fbb4ec 100644
--- a/EgwCoreLib.BlazorTest/libman.json
+++ b/EgwCoreLib.BlazorTest/libman.json
@@ -5,6 +5,10 @@
{
"library": "bootstrap@5.2.3",
"destination": "wwwroot/lib/css/bootstrap/"
+ },
+ {
+ "library": "font-awesome@6.3.0",
+ "destination": "wwwroot/lib/font-awesome/"
}
]
}
\ No newline at end of file
diff --git a/EgwCoreLib.Razor/CalendarMonth.razor.cs b/EgwCoreLib.Razor/CalendarMonth.razor.cs
index 5bec4cd..a1d6a70 100644
--- a/EgwCoreLib.Razor/CalendarMonth.razor.cs
+++ b/EgwCoreLib.Razor/CalendarMonth.razor.cs
@@ -226,7 +226,7 @@ namespace EgwCoreLib.Razor
private string dayCss(DateTime currDay)
{
string answ = CurrMonthCss;
- // se � fuori estremi mese --> grigio...
+ // se fosse fuori estremi mese --> grigio...
if (currDay < MonthStart || currDay > MonthEnd)
{
answ = OtherMonthCss;
@@ -238,7 +238,7 @@ namespace EgwCoreLib.Razor
{
answ = DateCheckBlock[currDay];
}
- // se � weekend forzo quello
+ // se fosse weekend forzo quello
else if (currDay.DayOfWeek == DayOfWeek.Saturday || currDay.DayOfWeek == DayOfWeek.Sunday)
{
answ = WeekEndCss;