Add game header #5

Merged
Egamorf merged 14 commits from feature/add-game-header into main 2025-03-20 18:33:28 +01:00
2 changed files with 13 additions and 0 deletions
Showing only changes of commit 34a2e80ffb - Show all commits

View File

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

View File

@@ -31,6 +31,13 @@ public partial class GameFilter
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;
protected override void OnInitialized()