Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add multiselect with search and better display #1661

Merged
merged 2 commits into from
Aug 26, 2023
Merged

Conversation

Masterjun3
Copy link
Collaborator

This adds a TagHelper that can be used with the <select> element. For non-javascript people, the old way still works.

2023-08-26.18-00-05.mp4

Usage is like this:

<select asp-for="Search.GameGroups" size="@(Math.Min(Model.AvailableGameGroups.Count(), 7).ToString())" asp-items="Model.AvailableGameGroups" class="form-control"></select>
<select-improver select-id="@Html.IdFor(m => m.Search.GameGroups)"></select-improver>

@adelikat adelikat self-requested a review August 26, 2023 16:27
@adelikat adelikat merged commit ca4556e into main Aug 26, 2023
@adelikat adelikat deleted the multiselect-with-search branch August 26, 2023 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants