BlazorDataGrid 1.1.0
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package BlazorDataGrid --version 1.1.0
NuGet\Install-Package BlazorDataGrid -Version 1.1.0
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="BlazorDataGrid" Version="1.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add BlazorDataGrid --version 1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: BlazorDataGrid, 1.1.0"
#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 BlazorDataGrid as a Cake Addin #addin nuget:?package=BlazorDataGrid&version=1.1.0 // Install BlazorDataGrid as a Cake Tool #tool nuget:?package=BlazorDataGrid&version=1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
il faut ajouter dans le fichier _Imports.razor
@using BlazorDataGrid
Et dans le fichier Startup.cs
dans la méthode public void ConfigureServices(IServiceCollection services)
services.AddScoped<AppState, AppState>();
Exemple d'utilisation
Le composant <BlazorDataGrid>
accepte les paramètres suivant :
- Items : La liste qui remplie la datagrid
- PageSize : Le nombre de résultat par page. Le paramètre est obligatoire
- ShowTotalResult : Un booléen pour afficher ou non le nombre de résultats
- BlazorDataGridColumn : Un composant permettant d'afficher les header
- GridRow : Les lignes de la datagrid
Le composant <BlazorDataGridColumn>
accepte les paramètres suivant :
- DataGridColumn : Le composant détaillant chaque header
Le composant <DataGridColumn>
accepte les paramètres suivant :
- Items : Il faut passer le même paramètre que pour le composant
<BlazorDataGrid>
- ColumnName : Le nom réel de la colonne sur laquelle se base le filtre et le tri
- DisplayColumnName : (non obligatoire) Le nom qui sera affiché dans le header. Il est possible de passer le contenu du header entre les balises à la place
- Filter : true ou false pour afficher ou non le champ filtre sur la colonne
Exemple de code :
<BlazorDataGrid Items="@forecasts" PageSize="5" ShowTotalResult="true">
<BlazorDataGridColumn>
<DataGridColumn Items="@forecasts" ColumnName="Date" Filter="true"><strong>Date</strong></DataGridColumn>
<DataGridColumn Items="@forecasts" ColumnName="TemperatureC" DisplayColumnName="TemperatureC" Filter="true"></DataGridColumn>
<DataGridColumn Items="@forecasts" ColumnName="TemperatureF" DisplayColumnName="TemperatureF"></DataGridColumn>
<DataGridColumn Items="@forecasts" ColumnName="Summary" DisplayColumnName="Summary"></DataGridColumn>
</BlazorDataGridColumn>
<GridRow>
<td>@context.Date.ToShortDateString()</td>
<td>@context.TemperatureC</td>
<td>@context.TemperatureF</td>
<td>@context.Summary</td>
</GridRow>
</BlazorDataGrid>
Aperçu
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- Microsoft.AspNetCore.Blazor (>= 3.0.0-preview7.19365.7)
- Microsoft.AspNetCore.Blazor.Browser (>= 0.7.0)
- Microsoft.AspNetCore.Blazor.DevServer (>= 3.0.0-preview7.19365.7)
- Microsoft.CSharp (>= 4.5.0)
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 |
---|---|---|
6.0.1 | 276 | 9/1/2023 |
6.0.1-beta.5 | 82 | 9/1/2023 |
6.0.1-beta.3 | 83 | 9/1/2023 |
6.0.1-beta.2 | 79 | 9/1/2023 |
6.0.1-beta | 119 | 9/1/2023 |
6.0.0 | 163 | 8/25/2023 |
5.0.1 | 572 | 7/7/2022 |
5.0.0 | 385 | 11/19/2021 |
5.0.0-beta.1 | 173 | 8/22/2021 |
4.1.1 | 474 | 2/12/2021 |
4.1.1-beta.2 | 160 | 2/12/2021 |
4.1.1-beta.1 | 153 | 2/12/2021 |
4.1.0 | 392 | 2/12/2021 |
4.0.0 | 396 | 2/10/2021 |
3.0.0 | 584 | 10/16/2020 |
2.0.2 | 473 | 6/11/2020 |
2.0.1 | 290 | 5/14/2020 |
2.0.0 | 276 | 5/4/2020 |
1.11.0 | 2,529 | 12/16/2019 |
1.10.2 | 343 | 10/22/2019 |
1.10.1 | 303 | 10/21/2019 |
1.10.0 | 299 | 10/17/2019 |
1.9.0 | 330 | 10/15/2019 |
1.8.0 | 349 | 9/23/2019 |
1.7.0 | 314 | 9/6/2019 |
1.6.0 | 325 | 9/3/2019 |
1.5.0 | 306 | 9/2/2019 |
1.4.0 | 353 | 8/26/2019 |
1.3.0 | 351 | 8/22/2019 |
1.2.0 | 357 | 8/13/2019 |
1.1.1 | 354 | 8/5/2019 |
1.1.0 | 351 | 8/5/2019 |
1.0.0 | 379 | 8/3/2019 |