add genres filter

This commit is contained in:
Maxime Adler
2025-03-11 16:27:16 +01:00
parent 7d8f1c9544
commit 34a2e80ffb
2 changed files with 13 additions and 0 deletions

View File

@@ -40,6 +40,12 @@
@bind-Values=GameFilterParams.Plateforms @bind-Values=GameFilterParams.Plateforms
Theme="SelectListTheme.Filter"/> Theme="SelectListTheme.Filter"/>
<MultipleSelectList TItem="string"
Items="Genres"
@bind-Values=GameFilterParams.Genres
Theme="SelectListTheme.Filter" />
</div> </div>
</EditForm> </EditForm>

View File

@@ -31,6 +31,13 @@ public partial class GameFilter
new() { Item = "Ubisoft", Label = "Ubisoft" }, new() { Item = "Ubisoft", Label = "Ubisoft" },
]; ];
private readonly IEnumerable<SelectElement<string>> Genres = [
new() { Item = "Rogue Like", Label = "Rogue Like" },
new() { Item = "Aventure", Label = "Aventure" },
new() { Item = "RPG", Label = "RPG" },
new() { Item = "Fast FPS", Label = "Fast FPS" },
];
private EditContext? EditContext; private EditContext? EditContext;
protected override void OnInitialized() protected override void OnInitialized()