Skip to content

Commit

Permalink
WatchList.MudBlazor - Add "SorterField" and use it in project.
Browse files Browse the repository at this point in the history
  • Loading branch information
Stan-Kudri committed Feb 14, 2024
1 parent f1b2ef8 commit 1804193
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions WatchList.MudBlazors/Pages/WatchCinemaTable.razor
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
@using Bromix.MudBlazor.MaterialDesignIcons
@using WatchList.Core.Model.Filter.Components
@using WatchList.Core.Model.ItemCinema
@using WatchList.Core.Model.Sorting

@page "/watchlist"

Expand All @@ -10,10 +11,20 @@

<MudToolBar Style="place-items:end">


<div style="align-items:start">
<MudSelect T="SortField" Label="Sorting" AdornmentIcon="@Icons.Material.Filled.ShortText" @bind-Value="Sort.Type" OnClose="@LoadData" OnKeyUp="@LoadData">
@foreach (var item in Sort.Items.ToList())
{
<MudSelectItem T="SortField" Value="@item" />
}
</MudSelect>
</div>

<MudSpacer/>

<div style="align-items:end">
<MudSelect T="TypeFilter" Label="Type" AdornmentIcon="@Icons.Material.Filled.ShortText" Class="mr-2" @bind-Value="Filter.Type">
<MudSelect T="TypeFilter" Label="Type cinema" AdornmentIcon="@Icons.Material.Filled.ShortText" Class="mr-2" @bind-Value="Filter.Type">
@foreach (var item in Filter.TypeItem.ToList())
{
<MudSelectItem T="TypeFilter" Value="@item" />
Expand All @@ -22,7 +33,7 @@
</div>

<div style="align-items:end">
<MudSelect T="StatusFilter" Label="Type" AdornmentIcon="@Icons.Material.Filled.ShortText" Class="mr-1" @bind-Value="Filter.Status">
<MudSelect T="StatusFilter" Label="Status" AdornmentIcon="@Icons.Material.Filled.ShortText" Class="mr-1" @bind-Value="Filter.Status">
@foreach (var item in Filter.StatusItem.ToList())
{
<MudSelectItem T="StatusFilter" Value="@item" />
Expand Down
Binary file modified WatchList.MudBlazors/app.db
Binary file not shown.
Binary file modified WatchList.MudBlazors/app.db-shm
Binary file not shown.
Binary file modified WatchList.MudBlazors/app.db-wal
Binary file not shown.

0 comments on commit 1804193

Please sign in to comment.