BlazorGridStack 1.0.12

dotnet add package BlazorGridStack --version 1.0.12
                    
NuGet\Install-Package BlazorGridStack -Version 1.0.12
                    
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="BlazorGridStack" Version="1.0.12" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="BlazorGridStack" Version="1.0.12" />
                    
Directory.Packages.props
<PackageReference Include="BlazorGridStack" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add BlazorGridStack --version 1.0.12
                    
#r "nuget: BlazorGridStack, 1.0.12"
                    
#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.
#:package BlazorGridStack@1.0.12
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=BlazorGridStack&version=1.0.12
                    
Install as a Cake Addin
#tool nuget:?package=BlazorGridStack&version=1.0.12
                    
Install as a Cake Tool

BlazorGridStack

gridstack.js port for Blazor Compatible with Blazor server mode and WASM

Nugget package

https://www.nuget.org/packages/BlazorGridStack/1.0.0

Installation

Install the nugget package through nugget manager or

dotnet add package MudBlazor

Import the following

@using BlazorGridStack
@using BlazorGridStack.Models

then simply add the markup shown in the Usage/Examples section. Javascript and css files are loaded automatically.

Usage/Examples

Widgets as markup:

<BlazorGridStackBody GridStackOptions="@(new() { Class = "my-class" })">
    <BlazorGridStackWidget WidgetOptions="@(new() {X = 3, Y = 2})"></BlazorGridStackWidget>
</BlazorGridStackBody>

Widgets on runtime

<button onclick="@AddElementClicked">Add Element</button>
<BlazorGridStackBody @ref="Grid" GridStackOptions="@(new() { Class = "my-class" })"></BlazorGridStackBody>

@code {
    BlazorGridStackBody? Grid;

    public void AddElementClicked()
    {
        Grid.AddWidget(new BlazorGridStackWidgetOptions
        {
            W = 1,
            H = 1
        });
    }
}

API Reference

BlazorGridStack uses the same event and method names as gridstack.js (in UpperCammelCase), described in their API: https://github.com/gridstack/gridstack.js/tree/master/doc

exceptions and limitations

  • Events and Methods that return a widget DOM element, will return objects of the type BlazorGridWidget.
  • Methods wich require a widget DOM element, will accept an ID instead.
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  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.  net10.0 was computed.  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. 
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
1.0.12 3,563 2/17/2023
1.0.11 584 11/4/2022
1.0.10 514 11/4/2022
1.0.9 591 9/12/2022
1.0.8 548 9/7/2022
1.0.7 548 9/7/2022
1.0.6 578 9/7/2022
1.0.5 550 9/7/2022
1.0.4 555 9/7/2022
1.0.3 561 9/7/2022
1.0.2 583 9/7/2022
1.0.1 589 9/7/2022
1.0.0 603 8/29/2022