@page "/inventory"
@using System.Globalization
@using BlazorApp1.Components
@using BlazorApp1.Models

<PageTitle>@Localizer["TitlePage"]</PageTitle>
<h3>@Localizer["Title"]</h3>

<div>
    <InventoryComponent Items="Items"/>
</div>

<DataGrid TItem="Item"
          Data="@Items"
          ReadData="@OnReadData"
          TotalItems="@totalItem"
          PageSize="10"
          ShowPager
          Sortable='true'
          Responsive>
</DataGrid>

<button type="button" class="btn btn-danger" @onclick="() => SortItem()"><i class="fa fa-trash"></i> Supprimer</button>

<p>
    <b>CurrentCulture</b>: @CultureInfo.CurrentCulture
</p>

