
Security News
libxml2 Maintainer Ends Embargoed Vulnerability Reports, Citing Unsustainable Burden
Libxml2’s solo maintainer drops embargoed security fixes, highlighting the burden on unpaid volunteers who keep critical open source software secure.
FilterDropDownList.Blazor
Advanced tools
A filterable dropdown list component for blazor applications
A filterable dropdown list component for Blazor applications.
Install form NuGet
To avoid having to add using statements for FilterDropDownList.Blazor to lots of components in your project, it's recommended that you add the following to your root _Imports.razor file. This will make the following usings available to all component in that project.
@using FilterDropDownList.Blazor.GenericFilterSelect
@using FilterDropDownList.Blazor.GenericFilterSelect.Models;
<h3>Component</h3>
<FilterSelectComponent @bind-BindValue="SelectedPerson"
TData="PersonModel"
Data="PersonList"
FilterAgainstPropertyName="@($"{nameof(PersonModel.Name)}")"
OnSelectListItem="OnPersonSelected"
Label="Persons">
<RowTemplate>
@context.ID - @context.Name
</RowTemplate>
</FilterSelectComponent>
@code {
public class PersonModel
{
public int ID { get; set; }
public string Name { get; set; }
public string Surname { get; set; }
}
private List<PersonModel> PersonList { get; set; } = new();
public PersonModel SelectedPerson { get; set; } = new();
protected override void OnInitialized()
{
PersonList.Add(new PersonModel { ID = 1, Name = "Huciko", Surname = "Zellikan" });
PersonList.Add(new PersonModel { ID = 2, Name = "John", Surname = "Gray" });
PersonList.Add(new PersonModel { ID = 3, Name = "Jack", Surname = "Black" });
}
// Optional method to execute on item selected
private void OnPersonSelected(FilterSelectComponentEventCallbackArgs<PersonModel> args)
{
// FilterSelectComponentEventCallbackArgs model has two properties
// SelectedItem, a reference to the selected iten in the dropdown
// ExtraParameter, an extra optional parameter (object) to pass together the SelectedItem
string personName = args.SelectedItem.Name;
}
}
FAQs
A filterable dropdown list component for blazor applications
We found that filterdropdownlist.blazor demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Libxml2’s solo maintainer drops embargoed security fixes, highlighting the burden on unpaid volunteers who keep critical open source software secure.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.