![]() |
VOOZH | about |
dotnet add package Soenneker.Blazor.TomSelect --version 4.0.4494
NuGet\Install-Package Soenneker.Blazor.TomSelect -Version 4.0.4494
<PackageReference Include="Soenneker.Blazor.TomSelect" Version="4.0.4494" />
<PackageVersion Include="Soenneker.Blazor.TomSelect" Version="4.0.4494" />Directory.Packages.props
<PackageReference Include="Soenneker.Blazor.TomSelect" />Project file
paket add Soenneker.Blazor.TomSelect --version 4.0.4494
#r "nuget: Soenneker.Blazor.TomSelect, 4.0.4494"
#:package Soenneker.Blazor.TomSelect@4.0.4494
#addin nuget:?package=Soenneker.Blazor.TomSelect&version=4.0.4494Install as a Cake Addin
#tool nuget:?package=Soenneker.Blazor.TomSelect&version=4.0.4494Install as a Cake Tool
👁 alternate text is missing from this package README image
👁 alternate text is missing from this package README image
👁 alternate text is missing from this package README image
👁 alternate text is missing from this package README image
👁 alternate text is missing from this package README image
This library simplifies the integration of Tom Select into Blazor applications, providing access to options, methods, plugins, and events. A demo project showcasing common usages is included.
Diligence was taken to align the Blazor API with JS. Refer to the Tom Select documentation for details.
dotnet add package Soenneker.Blazor.TomSelect
Startup.cs filepublic void ConfigureServices(IServiceCollection services)
{
services.AddTomSelectInteropAsScoped();
}
@using Soenneker.Blazor.TomSelect
<TomSelect
TItem="Country"
TType="string"
OnItemAdd="OnItemAdd"
Data="@_countries"
TextField="@(item => item.Name)"
ValueField="@(item => item.Id.ToString())"
@ref="_tomSelect"
Configuration="@_configuration"
@bind-Items="_selectedCountries"> // Supports two-way binding
</TomSelect>
@code{
private TomSelect<Country, string> _tomSelect = default!;
private List<Country>? _selectedCountries = [];
private List<Country>? _countries;
private readonly TomSelectConfiguration _configuration = new()
{
Plugins = [TomSelectPluginType.DragDrop]
};
protected override async Task OnInitializedAsync()
{
_countries = await Http.GetFromJsonAsync<List<Country>>("sample-data/countries.json");
}
private void OnItemAdd((string str, TomSelectOption obj) result)
{
Logger.LogInformation("OnItemAdd fired: Value: {value}", str);
}
private void LogSelectedItems()
{
foreach (Country item in _selectedCountries)
{
Logger.LogInformation("Selected item: {0}", item.Name);
}
}
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 1 NuGet packages that depend on Soenneker.Blazor.TomSelect:
| Package | Downloads |
|---|---|
|
Soenneker.Blazor.SheetMapper
A Blazor component and utility library for mapping uploaded CSV or tabular files to C# objects. Supports header extraction and user-defined property mapping. |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.4494 | 0 | 6/19/2026 |
| 4.0.4491 | 0 | 6/18/2026 |
| 4.0.4488 | 56 | 6/17/2026 |
| 4.0.4487 | 64 | 6/17/2026 |
| 4.0.4486 | 97 | 6/17/2026 |
| 4.0.4485 | 69 | 6/17/2026 |
| 4.0.4484 | 69 | 6/17/2026 |
| 4.0.4482 | 67 | 6/16/2026 |
| 4.0.4481 | 70 | 6/16/2026 |
| 4.0.4480 | 147 | 6/16/2026 |
| 4.0.4479 | 127 | 6/14/2026 |
| 4.0.4478 | 120 | 6/13/2026 |
| 4.0.4476 | 78 | 6/13/2026 |
| 4.0.4474 | 291 | 6/10/2026 |
| 4.0.4472 | 92 | 6/10/2026 |
| 4.0.4469 | 100 | 6/10/2026 |
| 4.0.4467 | 143 | 6/9/2026 |
| 4.0.4465 | 147 | 6/9/2026 |
| 4.0.4464 | 158 | 6/7/2026 |
| 4.0.4463 | 110 | 6/7/2026 |
Update dependency Soenneker.Lepton.Suite to 4.0.25 (#5514)