parent
f0d89e4874
commit
8e96c6addd
@ -1,51 +1,48 @@
|
|||||||
@page "/inventory"
|
@page "/inventory"
|
||||||
@using myBlazorApp.Components
|
@using myBlazorApp.Components
|
||||||
@using System.Globalization
|
@using System.Globalization
|
||||||
@using myBlazorApp.Models;
|
@using myBlazorApp.Models;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="body">
|
<div class="body">
|
||||||
<div class="inventory">
|
<div class="inventory">
|
||||||
<MyInventory/>
|
<MyInventory/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="ItemList">
|
<div id="ItemList">
|
||||||
<div>
|
|
||||||
<h3>List of Items</h3>
|
<div id="ItemList" class="align-end">
|
||||||
@*SearchBar*@
|
<div>
|
||||||
|
<p>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="ItemList" class="align-end">
|
|
||||||
<div>
|
|
||||||
<p>
|
|
||||||
List of items
|
List of items
|
||||||
</p>
|
</p>
|
||||||
@*SearchBar*@
|
@*SearchBar*@
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<DataGrid TItem="Item"
|
<DataGrid TItem="Item"
|
||||||
Data="@items"
|
Data="@items"
|
||||||
ReadData="@OnReadData"
|
ReadData="@OnReadData"
|
||||||
TotalItems="@totalItem"
|
TotalItems="@totalItem"
|
||||||
PageSize="10"
|
PageSize="10"
|
||||||
ShowPager
|
ShowPager
|
||||||
Responsive>
|
Responsive>
|
||||||
<DataGridColumn TItem="Item" Field=""/>
|
<DataGridColumn TItem="Item" Field=""/>
|
||||||
<DataGridColumn TItem="Item" Field="@nameof(Item.DisplayName)" Caption="Display name" />
|
<DataGridColumn TItem="Item" Field="@nameof(Item.DisplayName)" Caption="Display name" />
|
||||||
<DataGridColumn TItem="Item" Field="@nameof(Item.Id)" Caption="Image">
|
<DataGridColumn TItem="Item" Field="@nameof(Item.Id)" Caption="Image">
|
||||||
@if (!string.IsNullOrWhiteSpace(context.ImageBase64))
|
<DisplayTemplate>
|
||||||
{
|
@if (!string.IsNullOrWhiteSpace(context.ImageBase64))
|
||||||
<img src="data:image/png;base64, @(context.ImageBase64)" class="img-thumbnail" title="@context.DisplayName" alt="@context.DisplayName" style="min-width: 50px; max-width: 150px" />
|
{
|
||||||
}
|
<img src="data:image/png;base64, @(context.ImageBase64)" class="img-thumbnail" title="@context.DisplayName" alt="@context.DisplayName" style="min-width: 50px; max-width: 150px" />
|
||||||
else
|
}
|
||||||
{
|
else
|
||||||
<img src="images/default.png" class="img-thumbnail" title="@context.DisplayName" alt="@context.DisplayName" style="max-width: 150px"/>
|
{
|
||||||
}
|
<img src="images/default.png" class="img-thumbnail" title="@context.DisplayName" alt="@context.DisplayName" style="max-width: 150px"/>
|
||||||
</DataGridColumn>
|
}
|
||||||
</DataGrid>
|
</DisplayTemplate>
|
||||||
</div>
|
</DataGridColumn>
|
||||||
</div>
|
</DataGrid>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
Loading…
Reference in new issue