@page "/dev/tiamgridexample"
@using TIAMWebApp.Shared.Application.Interfaces;
@using TIAMWebApp.Shared.Application.Models;
@using TIAMSharedUI.Shared.Components;
@using TIAMSharedUI.Shared.AcComponents;
@inject IWeatherForecastService WeatherForecastService;
@code {
public List? Forecasts { get; set; }
public Dictionary InputAttributes { get; set; } =
new Dictionary() {
{ "PageSize", 5 },
{ "ShowFilterRow", false },
{ "PagerVisible" , false },
{ "ShowGroupPanel", true }
};
protected override async Task OnInitializedAsync() {
base.OnInitialized();
WeatherForecast[]? data = await WeatherForecastService.GetWeatherForecastAsync();
Forecasts = data.ToList();
}
}