add genres filter
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user