Add tabbed DataTables with new Production, Vitality, and Movement tables

This commit is contained in:
Jonathan
2025-04-27 22:07:52 -04:00
parent e28f74b354
commit d320476084
7 changed files with 90 additions and 15 deletions
@@ -0,0 +1,21 @@
<MudDataGrid T="EntityProductionModel" Items="@data"
SortMode="SortMode.Multiple"
Filterable="true"
Hideable="true">
<Columns>
<PropertyColumn Property="x => x.Parent.GetName()" Title="Entity"/>
<PropertyColumn Property="x => x.Alloy"/>
<PropertyColumn Property="x => x.BuildTime"/>
<PropertyColumn Property="x => x.Ether"/>
<PropertyColumn Property="x => x.Parent.GetFaction()" Title="Faction"/>
<PropertyColumn Property="x => x.Parent.GetImmortal()" Title="Immortal"/>
</Columns>
</MudDataGrid>
@code {
readonly IEnumerable<EntityProductionModel> data = DATA.Get()
.SelectMany(e => e.Value.EntityParts)
.OfType<EntityProductionModel>()
.ToList();
}