Initial commit
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
@using RobotNet.VDA5050.State
|
||||
|
||||
<MudPaper Class="pa-4" Elevation="2">
|
||||
<MudText Typo="Typo.h6" Class="mb-3">Maps</MudText>
|
||||
@if (State?.Maps != null && State.Maps.Length > 0)
|
||||
{
|
||||
<MudTable Items="@State.Maps" T="Map" Hover="true" Dense="true" Elevation="0">
|
||||
<HeaderContent>
|
||||
<MudTh>Map ID</MudTh>
|
||||
<MudTh>Map Description</MudTh>
|
||||
</HeaderContent>
|
||||
<RowTemplate>
|
||||
<MudTd DataLabel="Map ID">@context.MapId</MudTd>
|
||||
<MudTd DataLabel="Map Description">@(context.MapDescription ?? "N/A")</MudTd>
|
||||
</RowTemplate>
|
||||
</MudTable>
|
||||
}
|
||||
else
|
||||
{
|
||||
<MudText Typo="Typo.body2" Align="Align.Center">No maps available</MudText>
|
||||
}
|
||||
</MudPaper>
|
||||
|
||||
@code {
|
||||
public StateMsg? State { get; set; }
|
||||
|
||||
public void Update(StateMsg? state)
|
||||
{
|
||||
State = state;
|
||||
StateHasChanged();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user