Itemzen.GridStack.Blazor
12.4.0-r2
Nomanova.GridStack.Blazor 13.2.0-r1
Additional DetailsThe repository of this package was migrated from the itemzen organization to the nomanova organization on github (see https://github.com/nomanova/gridstack-blazor). As a result, this package is no longer published using package id Itemzen.GridStack.Blazor but Nomanova.GridStack.Blazor. You can keep using this package id till you upgrade to a more recent version.
dotnet add package Itemzen.GridStack.Blazor --version 12.4.0-r2
NuGet\Install-Package Itemzen.GridStack.Blazor -Version 12.4.0-r2
<PackageReference Include="Itemzen.GridStack.Blazor" Version="12.4.0-r2" />
<PackageVersion Include="Itemzen.GridStack.Blazor" Version="12.4.0-r2" />
<PackageReference Include="Itemzen.GridStack.Blazor" />
paket add Itemzen.GridStack.Blazor --version 12.4.0-r2
#r "nuget: Itemzen.GridStack.Blazor, 12.4.0-r2"
#:package Itemzen.GridStack.Blazor@12.4.0-r2
#addin nuget:?package=Itemzen.GridStack.Blazor&version=12.4.0-r2&prerelease
#tool nuget:?package=Itemzen.GridStack.Blazor&version=12.4.0-r2&prerelease
Itemzen.GridStack.Blazor
Blazor wrapper for the gridstack.js library.
Credits go to the BlazorGridStack project, from which this wrapper took inspiration.
Installation
NuGet
dotnet add package Itemzen.GridStack.Blazor
The version of the nuget package matches the gridstack version against which the wrapper was created,
including a version suffix indicating the wrapper release number. For example, v10.1.0-r2 indicates the
second release of the wrapper for version 10.2.0 of the gridstack library.
Note that it is in general fine to use/include a different (minor) gridstack version in your project, especially bugfix releases, but if things don't work as expected it might be best to try and match the gridstack version exactly.
index.html
Download the gridstack files from npm
npm install --save gridstack
Copy the relevant files over from the node_modules/gridstack/dist to your Blazor project
wwwroot/lib/gridstack-all.js
wwwroot/lib/gridstack.min.css
Add the following lines in wwwroot/index.html
<head>
...
<link href="lib/gridstack.min.css" rel="stylesheet" />
</head>
<body>
...
<script src="lib/gridstack-all.js"></script>
</body>
Imports
Add a reference to the relevant namespace in the top-level _Imports.razor file of your project
@using GridStack.Blazor
Usage
The wrapper adds two components: GsGrid and GsWidget.
<GsGrid Options="...">
<GsWidget Options="...">
<div>The widget layout</div>
</GsWidget>
</GsGrid>
The widgets can be added to the grid using markup (as shown above), or programatically using the GsGrid API.
The demo project contains additional details.
| Product | Versions 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. net9.0 is compatible. 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. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Microsoft.AspNetCore.Components (>= 10.0.6)
- Microsoft.AspNetCore.Components.Web (>= 10.0.6)
-
net8.0
- Microsoft.AspNetCore.Components (>= 8.0.26)
- Microsoft.AspNetCore.Components.Web (>= 8.0.26)
-
net9.0
- Microsoft.AspNetCore.Components (>= 9.0.15)
- Microsoft.AspNetCore.Components.Web (>= 9.0.15)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.