Soenneker.Blazor.TomSelect 2.1.389

The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.Blazor.TomSelect --version 2.1.389
NuGet\Install-Package Soenneker.Blazor.TomSelect -Version 2.1.389
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Soenneker.Blazor.TomSelect" Version="2.1.389" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Soenneker.Blazor.TomSelect --version 2.1.389
#r "nuget: Soenneker.Blazor.TomSelect, 2.1.389"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Soenneker.Blazor.TomSelect as a Cake Addin
#addin nuget:?package=Soenneker.Blazor.TomSelect&version=2.1.389

// Install Soenneker.Blazor.TomSelect as a Cake Tool
#tool nuget:?package=Soenneker.Blazor.TomSelect&version=2.1.389

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 Soenneker.Blazor.TomSelect

A Blazor interop library for the select user control library, Tom Select

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.

Installation

dotnet add package Soenneker.Blazor.TomSelect

1. Add the following to your _Imports.razor file

@using Soenneker.Blazor.TomSelect

2. Add the following to your Startup.cs file

public void ConfigureServices(IServiceCollection services)
{
    services.AddTomSelect();
}

3. Add the stylesheet to your wwwroot/index.html file

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/tom-select/dist/css/tom-select.bootstrap5.min.css">

4. Add the scripts to your wwwroot/index.html file

<script src="https://cdn.jsdelivr.net/npm/tom-select/dist/js/tom-select.complete.min.js"></script>
<script src="_content/Soenneker.Blazor.TomSelect/tomselectinterop.js"></script>

Usage

<TomSelect
    TItem="Country" TType="string" OnItemAdd="OnItemAdd"
    Data="@_countries"
    TextField="@(item => item.Name)"
    ValueField="@(item => item.Id.ToString())" @ref="_tomSelect" Items="_selectedCountries">
</TomSelect>

@code{
    private TomSelect<Country, string> _tomSelect = default!;

    private List<Country>? _selectedCountries;
    private List<Country>? _countries;

    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 _tomSelect.Items)
        {
            Logger.LogInformation("Selected item: {0}", item.Name);
        }
    }
}

⚠️ While a lot of the Tom Select library has been implemented, there are features not yet supported. If you need assistance or want to request a new feature, please open an issue or submit a pull request.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.1.573 0 6/1/2024
2.1.572 0 6/1/2024
2.1.571 0 6/1/2024
2.1.570 0 6/1/2024
2.1.569 0 6/1/2024
2.1.568 3 6/1/2024
2.1.567 3 6/1/2024
2.1.566 6 6/1/2024
2.1.565 3 6/1/2024
2.1.564 26 6/1/2024
2.1.563 22 6/1/2024
2.1.562 22 6/1/2024
2.1.561 28 6/1/2024
2.1.560 25 6/1/2024
2.1.559 23 6/1/2024
2.1.558 28 6/1/2024
2.1.557 34 5/31/2024
2.1.556 30 5/31/2024
2.1.555 38 5/31/2024
2.1.554 32 5/31/2024
2.1.553 32 5/31/2024
2.1.552 48 5/31/2024
2.1.551 19 5/31/2024
2.1.550 22 5/31/2024
2.1.549 19 5/31/2024
2.1.548 36 5/31/2024
2.1.547 35 5/31/2024
2.1.546 41 5/31/2024
2.1.545 36 5/31/2024
2.1.544 36 5/31/2024
2.1.543 37 5/31/2024
2.1.542 52 5/29/2024
2.1.541 67 5/29/2024
2.1.540 67 5/29/2024
2.1.539 57 5/29/2024
2.1.538 64 5/29/2024
2.1.537 62 5/29/2024
2.1.536 57 5/29/2024
2.1.535 56 5/29/2024
2.1.534 62 5/29/2024
2.1.533 59 5/29/2024
2.1.532 59 5/29/2024
2.1.531 66 5/29/2024
2.1.530 54 5/29/2024
2.1.529 78 5/29/2024
2.1.528 75 5/28/2024
2.1.527 68 5/28/2024
2.1.526 58 5/28/2024
2.1.525 57 5/28/2024
2.1.524 70 5/28/2024
2.1.523 65 5/28/2024
2.1.522 61 5/28/2024
2.1.521 87 5/28/2024
2.1.520 67 5/28/2024
2.1.519 62 5/28/2024
2.1.518 65 5/28/2024
2.1.517 66 5/28/2024
2.1.516 67 5/28/2024
2.1.515 68 5/28/2024
2.1.514 65 5/28/2024
2.1.513 56 5/28/2024
2.1.512 59 5/28/2024
2.1.511 59 5/28/2024
2.1.510 69 5/28/2024
2.1.509 65 5/28/2024
2.1.508 65 5/28/2024
2.1.507 65 5/27/2024
2.1.506 64 5/27/2024
2.1.505 64 5/27/2024
2.1.504 69 5/27/2024
2.1.503 71 5/27/2024
2.1.502 78 5/27/2024
2.1.501 71 5/27/2024
2.1.500 72 5/27/2024
2.1.499 72 5/27/2024
2.1.498 75 5/27/2024
2.1.497 72 5/27/2024
2.1.496 69 5/27/2024
2.1.495 64 5/26/2024
2.1.494 71 5/26/2024
2.1.493 74 5/26/2024
2.1.492 68 5/26/2024
2.1.491 71 5/26/2024
2.1.490 72 5/26/2024
2.1.489 80 5/26/2024
2.1.488 78 5/26/2024
2.1.487 75 5/26/2024
2.1.486 84 5/26/2024
2.1.485 81 5/26/2024
2.1.484 73 5/26/2024
2.1.483 87 5/26/2024
2.1.482 75 5/26/2024
2.1.481 81 5/26/2024
2.1.480 91 5/26/2024
2.1.479 72 5/26/2024
2.1.478 72 5/26/2024
2.1.477 81 5/25/2024
2.1.476 71 5/25/2024
2.1.475 73 5/25/2024
2.1.474 69 5/25/2024
2.1.473 81 5/25/2024
2.1.472 75 5/25/2024
2.1.471 74 5/25/2024
2.1.470 74 5/25/2024
2.1.469 86 5/25/2024
2.1.468 81 5/25/2024
2.1.467 75 5/25/2024
2.1.466 82 5/25/2024
2.1.465 72 5/25/2024
2.1.464 74 5/25/2024
2.1.463 80 5/25/2024
2.1.462 79 5/25/2024
2.1.461 74 5/25/2024
2.1.460 80 5/25/2024
2.1.459 76 5/25/2024
2.1.458 84 5/24/2024
2.1.457 76 5/24/2024
2.1.456 74 5/23/2024
2.1.455 80 5/23/2024
2.1.454 74 5/23/2024
2.1.453 73 5/23/2024
2.1.452 79 5/23/2024
2.1.451 79 5/23/2024
2.1.450 84 5/23/2024
2.1.449 74 5/23/2024
2.1.448 75 5/23/2024
2.1.447 73 5/23/2024
2.1.446 74 5/23/2024
2.1.445 69 5/23/2024
2.1.444 71 5/23/2024
2.1.443 78 5/23/2024
2.1.442 81 5/23/2024
2.1.441 78 5/23/2024
2.1.440 79 5/23/2024
2.1.439 77 5/23/2024
2.1.438 73 5/23/2024
2.1.437 82 5/22/2024
2.1.436 74 5/22/2024
2.1.435 80 5/22/2024
2.1.434 74 5/22/2024
2.1.433 81 5/22/2024
2.1.432 77 5/22/2024
2.1.431 87 5/22/2024
2.1.430 80 5/22/2024
2.1.429 90 5/22/2024
2.1.428 79 5/22/2024
2.1.427 73 5/22/2024
2.1.426 78 5/22/2024
2.1.425 77 5/22/2024
2.1.424 76 5/22/2024
2.1.423 70 5/22/2024
2.1.422 80 5/19/2024
2.1.421 80 5/19/2024
2.1.420 85 5/18/2024
2.1.419 71 5/18/2024
2.1.418 77 5/18/2024
2.1.417 80 5/18/2024
2.1.416 78 5/18/2024
2.1.415 82 5/18/2024
2.1.414 80 5/18/2024
2.1.413 72 5/18/2024
2.1.412 72 5/18/2024
2.1.411 93 5/18/2024
2.1.410 79 5/18/2024
2.1.409 74 5/18/2024
2.1.408 97 5/17/2024
2.1.407 85 5/17/2024
2.1.406 89 5/17/2024
2.1.405 84 5/17/2024
2.1.404 84 5/17/2024
2.1.403 80 5/17/2024
2.1.402 101 5/17/2024
2.1.401 79 5/17/2024
2.1.400 83 5/17/2024
2.1.399 77 5/17/2024
2.1.398 68 5/17/2024
2.1.397 66 5/17/2024
2.1.396 103 5/16/2024
2.1.395 79 5/16/2024
2.1.394 76 5/16/2024
2.1.393 89 5/16/2024
2.1.392 80 5/16/2024
2.1.391 81 5/16/2024
2.1.390 90 5/15/2024
2.1.389 84 5/15/2024
2.1.388 78 5/15/2024
2.1.387 80 5/15/2024
2.1.386 72 5/15/2024
2.1.385 71 5/15/2024
2.1.384 63 5/15/2024
2.1.383 62 5/15/2024
2.1.382 65 5/15/2024
2.1.381 67 5/14/2024
2.1.380 52 5/14/2024
2.1.379 60 5/14/2024
2.1.378 57 5/14/2024
2.1.377 69 5/13/2024
2.1.376 64 5/13/2024
2.1.375 66 5/13/2024
2.1.374 66 5/13/2024
2.1.373 60 5/13/2024
2.1.372 68 5/13/2024
2.1.371 60 5/13/2024
2.1.370 53 5/13/2024
2.1.369 67 5/13/2024
2.1.368 62 5/13/2024
2.1.367 62 5/13/2024
2.1.366 61 5/3/2024
2.1.365 68 5/1/2024
2.1.364 62 5/1/2024
2.1.363 81 4/30/2024
2.1.362 86 4/30/2024
2.1.361 95 4/30/2024
2.1.360 87 4/30/2024
2.1.359 87 4/30/2024
2.1.358 86 4/30/2024
2.1.357 89 4/30/2024
2.1.356 89 4/30/2024
2.1.355 83 4/30/2024
2.1.354 85 4/30/2024
2.1.353 90 4/30/2024
2.1.352 84 4/30/2024
2.1.351 82 4/30/2024
2.1.350 84 4/30/2024
2.1.349 83 4/30/2024
2.1.348 92 4/30/2024
2.1.347 80 4/30/2024
2.1.346 93 4/29/2024
2.1.345 78 4/29/2024
2.1.344 85 4/29/2024
2.1.343 78 4/29/2024
2.1.342 79 4/29/2024
2.1.341 86 4/29/2024
2.1.340 84 4/29/2024
2.1.339 85 4/29/2024
2.1.338 78 4/29/2024
2.1.337 84 4/29/2024
2.1.336 79 4/29/2024
2.1.335 83 4/29/2024
2.1.334 87 4/29/2024
2.1.333 87 4/28/2024
2.1.332 81 4/28/2024
2.1.331 77 4/28/2024
2.1.330 79 4/28/2024
2.1.329 85 4/28/2024
2.1.328 82 4/28/2024
2.1.327 92 4/28/2024
2.1.326 76 4/28/2024
2.1.325 76 4/28/2024
2.1.324 78 4/28/2024
2.1.323 87 4/28/2024
2.1.322 82 4/28/2024
2.1.321 78 4/28/2024
2.1.320 90 4/28/2024
2.1.319 86 4/28/2024
2.1.318 80 4/28/2024
2.1.317 77 4/28/2024
2.1.316 75 4/28/2024
2.1.315 83 4/28/2024
2.1.314 90 4/28/2024
2.1.313 77 4/28/2024
2.1.312 87 4/28/2024
2.1.311 88 4/28/2024
2.1.310 91 4/28/2024
2.1.309 79 4/28/2024
2.1.308 85 4/28/2024
2.1.307 85 4/27/2024
2.1.306 75 4/27/2024
2.1.305 79 4/27/2024
2.1.304 90 4/27/2024
2.1.303 85 4/22/2024
2.1.302 94 4/20/2024
2.1.301 85 4/20/2024
2.1.300 87 4/20/2024
2.1.299 84 4/20/2024
2.1.298 77 4/20/2024
2.1.297 81 4/20/2024
2.1.296 75 4/20/2024
2.1.295 79 4/20/2024
2.1.294 78 4/20/2024
2.1.293 82 4/19/2024
2.1.292 77 4/19/2024
2.1.291 79 4/19/2024
2.1.290 73 4/19/2024
2.1.289 77 4/19/2024
2.1.288 72 4/19/2024
2.1.287 74 4/19/2024
2.1.286 78 4/19/2024
2.1.285 80 4/19/2024
2.1.284 82 4/19/2024
2.1.283 75 4/19/2024
2.1.282 73 4/19/2024
2.1.281 80 4/19/2024
2.1.280 76 4/19/2024
2.1.279 79 4/19/2024
2.1.278 77 4/19/2024
2.1.277 72 4/19/2024
2.1.276 76 4/19/2024
2.1.275 80 4/18/2024
2.1.274 68 4/18/2024
2.1.273 107 4/15/2024
2.1.272 94 4/13/2024
2.1.271 78 4/13/2024
2.1.270 76 4/13/2024
2.1.269 67 4/13/2024
2.1.268 70 4/13/2024
2.1.267 72 4/13/2024
2.1.266 79 4/13/2024
2.1.265 77 4/13/2024
2.1.264 71 4/13/2024
2.1.263 76 4/13/2024
2.1.262 75 4/13/2024
2.1.261 77 4/13/2024
2.1.260 71 4/13/2024
2.1.259 71 4/13/2024
2.1.258 76 4/12/2024
2.1.257 58 4/12/2024
2.1.256 68 4/12/2024
2.1.255 73 4/12/2024
2.1.254 70 4/12/2024
2.1.253 67 4/12/2024
2.1.252 72 4/12/2024
2.1.251 69 4/12/2024
2.1.250 64 4/12/2024
2.1.249 76 4/12/2024
2.1.248 64 4/12/2024
2.1.247 68 4/12/2024
2.1.246 70 4/12/2024
2.1.245 74 4/12/2024
2.1.244 72 4/12/2024
2.1.243 76 4/12/2024
2.1.242 76 4/12/2024
2.1.241 73 4/12/2024
2.1.240 75 4/12/2024
2.1.239 82 4/12/2024
2.1.238 75 4/12/2024
2.1.237 76 4/12/2024
2.1.236 78 4/12/2024
2.1.235 78 4/12/2024
2.1.234 75 4/12/2024
2.1.233 69 4/12/2024
2.1.232 77 4/12/2024
2.1.231 85 4/11/2024
2.1.230 74 4/11/2024
2.1.229 77 4/10/2024
2.1.228 76 4/10/2024
2.1.227 71 4/10/2024
2.1.226 72 4/10/2024
2.1.225 69 4/10/2024
2.1.224 66 4/10/2024
2.1.223 71 4/10/2024
2.1.222 57 4/10/2024
2.1.221 59 4/10/2024
2.1.220 66 4/10/2024
2.1.219 72 4/10/2024
2.1.218 70 4/10/2024
2.1.217 71 4/10/2024
2.1.216 67 4/10/2024
2.1.215 65 4/10/2024
2.1.214 68 4/10/2024
2.1.213 80 4/9/2024
2.1.212 76 4/9/2024
2.1.211 79 4/9/2024
2.1.210 74 4/9/2024
2.1.209 90 4/8/2024
2.1.208 121 4/5/2024
2.1.207 71 4/4/2024
2.1.206 84 4/4/2024
2.1.205 76 4/4/2024
2.1.204 96 4/3/2024
2.1.203 82 4/3/2024
2.1.202 77 4/3/2024
2.1.201 75 4/3/2024
2.1.200 81 4/2/2024
2.1.199 72 4/2/2024
2.1.198 88 4/2/2024
2.1.197 85 4/2/2024
2.1.196 59 4/2/2024
2.1.195 84 4/2/2024
2.1.194 80 4/2/2024
2.1.193 87 4/2/2024
2.1.192 77 4/2/2024
2.1.191 64 4/2/2024
2.1.190 70 4/2/2024
2.1.189 78 4/1/2024
2.1.188 68 4/1/2024
2.1.187 75 4/1/2024
2.1.186 73 4/1/2024
2.1.185 70 4/1/2024
2.1.184 93 3/30/2024
2.1.183 81 3/30/2024
2.1.182 91 3/30/2024
2.1.181 78 3/30/2024
2.1.180 79 3/29/2024
2.1.179 79 3/29/2024
2.1.178 83 3/29/2024
2.1.177 74 3/29/2024
2.1.176 67 3/27/2024
2.1.175 82 3/26/2024
2.1.174 72 3/26/2024
2.1.173 68 3/25/2024
2.1.172 72 3/25/2024
2.1.171 62 3/25/2024
2.1.170 64 3/25/2024
2.1.169 74 3/25/2024
2.1.168 65 3/25/2024
2.1.167 81 3/25/2024
2.1.166 83 3/25/2024
2.1.165 74 3/25/2024
2.1.164 59 3/25/2024
2.1.163 77 3/25/2024
2.1.162 70 3/25/2024
2.1.161 84 3/24/2024
2.1.160 68 3/23/2024
2.1.159 96 3/21/2024
2.1.158 69 3/21/2024
2.1.157 86 3/21/2024
2.1.156 85 3/21/2024
2.1.155 79 3/21/2024
2.1.154 77 3/21/2024
2.1.153 79 3/21/2024
2.1.152 82 3/21/2024
2.1.151 85 3/21/2024
2.1.150 83 3/20/2024
2.1.149 70 3/20/2024
2.1.148 94 3/20/2024
2.1.147 94 3/20/2024
2.1.146 89 3/20/2024
2.1.145 96 3/20/2024
2.1.144 98 3/20/2024
2.1.143 91 3/20/2024
2.1.142 94 3/20/2024
2.1.141 77 3/19/2024
2.1.140 78 3/19/2024
2.1.139 96 3/19/2024
2.1.138 90 3/19/2024
2.1.137 83 3/19/2024
2.1.136 86 3/19/2024
2.1.135 89 3/19/2024
2.1.134 80 3/19/2024
2.1.133 103 3/19/2024
2.1.132 91 3/19/2024
2.1.131 98 3/19/2024
2.1.130 88 3/19/2024
2.1.129 89 3/19/2024
2.1.128 101 3/19/2024
2.1.127 75 3/19/2024
2.1.126 93 3/19/2024
2.1.125 92 3/18/2024
2.1.124 93 3/18/2024
2.1.123 82 3/18/2024
2.1.122 123 3/18/2024
2.1.121 100 3/16/2024
2.1.120 88 3/16/2024
2.1.119 100 3/16/2024
2.1.118 97 3/16/2024
2.1.117 92 3/16/2024
2.1.116 98 3/16/2024
2.1.115 97 3/16/2024
2.1.114 89 3/16/2024
2.1.113 93 3/16/2024
2.1.112 82 3/15/2024
2.1.111 83 3/15/2024
2.1.110 101 3/15/2024
2.1.109 91 3/15/2024
2.1.108 95 3/14/2024
2.1.107 95 3/14/2024
2.1.106 96 3/14/2024
2.1.105 69 3/14/2024
2.1.104 91 3/14/2024
2.1.103 106 3/13/2024
2.1.102 97 3/13/2024
2.1.101 95 3/13/2024
2.1.100 91 3/13/2024
2.1.99 93 3/13/2024
2.1.98 98 3/13/2024
2.1.97 95 3/13/2024
2.1.96 85 3/13/2024
2.1.95 90 3/13/2024
2.1.94 79 3/13/2024
2.1.93 105 3/13/2024
2.1.92 93 3/13/2024
2.1.91 103 3/13/2024
2.1.90 102 3/13/2024
2.1.89 97 3/13/2024
2.1.88 96 3/13/2024
2.1.87 86 3/13/2024
2.1.86 102 3/13/2024
2.1.85 82 3/13/2024
2.1.84 83 3/13/2024
2.1.83 100 3/13/2024
2.1.82 90 3/13/2024
2.1.81 89 3/13/2024
2.1.80 95 3/12/2024
2.1.79 97 3/12/2024
2.1.78 104 3/12/2024
2.1.77 88 3/12/2024
2.1.76 84 3/12/2024
2.1.75 88 3/12/2024
2.1.74 77 3/12/2024
2.1.73 95 3/12/2024
2.1.72 96 3/12/2024
2.1.71 80 3/12/2024
2.1.70 93 3/12/2024
2.1.69 75 3/12/2024
2.1.68 81 3/12/2024
2.1.67 85 3/12/2024
2.1.66 97 3/12/2024
2.1.65 97 3/11/2024
2.1.64 96 3/11/2024
2.1.63 118 3/11/2024
2.1.62 78 3/11/2024
2.1.61 106 3/11/2024
2.1.60 79 3/11/2024
2.1.59 90 3/11/2024
2.1.58 101 3/11/2024
2.1.57 83 3/11/2024
2.1.56 97 3/11/2024
2.1.55 89 3/11/2024
2.1.54 91 3/11/2024
2.1.53 99 3/11/2024
2.1.52 103 3/10/2024
2.1.51 94 3/10/2024
2.1.50 106 3/10/2024
2.1.49 103 3/10/2024
2.1.48 100 3/10/2024
2.1.47 86 3/10/2024
2.1.46 96 3/10/2024
2.1.45 94 3/10/2024
2.1.44 101 3/10/2024
2.1.43 96 3/10/2024
2.1.42 87 3/10/2024
2.1.41 99 3/9/2024
2.1.40 95 3/9/2024
2.1.39 97 3/9/2024
2.1.38 106 3/9/2024
2.1.37 111 3/9/2024
2.1.36 87 3/9/2024
2.1.35 100 3/8/2024
2.1.34 94 3/8/2024
2.1.33 97 3/8/2024
2.1.32 103 3/8/2024
2.1.31 99 3/8/2024
2.1.30 97 3/8/2024
2.1.29 89 3/8/2024
2.1.28 101 3/8/2024
2.1.27 87 3/8/2024
2.1.26 106 3/8/2024
2.1.25 84 3/8/2024
2.1.24 97 3/8/2024
2.1.23 89 3/8/2024
2.1.22 80 3/8/2024
2.1.21 109 3/8/2024
2.1.20 114 3/7/2024
2.1.19 99 3/7/2024
2.1.18 90 3/7/2024
2.1.17 93 3/6/2024
2.1.16 85 3/6/2024
2.1.15 100 3/6/2024
2.1.14 99 3/6/2024
2.1.13 101 3/6/2024
2.1.12 96 3/6/2024
2.1.11 98 3/6/2024
2.1.10 94 3/6/2024
2.1.9 100 3/6/2024
2.1.8 94 3/6/2024
2.1.7 90 3/6/2024
2.1.6 108 3/6/2024
2.1.5 105 3/6/2024
2.1.4 90 3/5/2024
2.1.3 101 3/5/2024