BlazorSplitGrid 1.9.1

dotnet add package BlazorSplitGrid --version 1.9.1
                    
NuGet\Install-Package BlazorSplitGrid -Version 1.9.1
                    
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="BlazorSplitGrid" Version="1.9.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="BlazorSplitGrid" Version="1.9.1" />
                    
Directory.Packages.props
<PackageReference Include="BlazorSplitGrid" />
                    
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 BlazorSplitGrid --version 1.9.1
                    
#r "nuget: BlazorSplitGrid, 1.9.1"
                    
#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 BlazorSplitGrid@1.9.1
                    
#: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=BlazorSplitGrid&version=1.9.1
                    
Install as a Cake Addin
#tool nuget:?package=BlazorSplitGrid&version=1.9.1
                    
Install as a Cake Tool

Version Nuget downloads

Blazor Split Grid

A basic Blazor component wrapper around Split Grid.

Prerequisites

  • A system that can compile and run the .NET Framework
  • .NET SDK
  • A code editor, we recommend Jet Brains Rider, Visual Studio or VS Code

Installation Guide

  1. Install the Nuget Package
    dotnet add package BlazorSplit
    
  2. Add namespace reference to your _Imports.razor
    @using BlazorSplitGrid
    
  3. Add the following to the end of your HTML body section, it's either index.html or _Layout.cshtml/_Host.cshtml depending on whether you're running WebAssembly or Server, it should be in the same location as the default blazor script.
    <script src="_content/BlazorSplitGrid/splitGrid/split-grid.min.js"></script>
    
  4. Optional In the same file but located in the HTML head section, you can add basic gutter styling by including the following css
    <link href="_content/BlazorSplitGrid/BlazorSplitGrid.min.css" rel="stylesheet" />
    

Usage

Blazor Split Grid will automatically generate the track number and classes for your gutters so all you need to specify is whether the gutter is a row or column.


<SplitGrid SnapOffset="0" DragInterval="1" MaxSize="850">
    <SplitGridContent></SplitGridContent>
    <SplitGridColumn/>
    <SplitGridContent></SplitGridContent>
    <SplitGridRow/>
    <SplitGridContent></SplitGridContent>
    <SplitGridContent></SplitGridContent>
</SplitGrid>

Example

See the example project for a more comprehensive example.

API Reference

SplitGrid

You are able to specify all the Split Grid options on the top level SplitGrid component except the row and column gutters.

Attribute Type Default Description
MinSize int 0 The minimum size in pixels for all tracks.
MaxSize int Infinity The maximum size in pixels for all tracks.
ColumnMinSize int MinSize The minimum size in pixels for all tracks.
RowMinSize int MinSize The minimum size in pixels for all tracks.
ColumnMaxSize int MaxSize The maximum size in pixels for all tracks.
RowMaxSize int MaxSize The maximum size in pixels for all tracks.
ColumnMinSizes Dictionary<int, int> ColumnMinSize An object keyed by track index, with values set to the minimum size in pixels for the track at that index. Allows individual minSizes to be specified by track. Note this option is plural with an s, while the two fallback options are singular.
RowMinSizes Dictionary<int, int> RowMinSize object keyed by track index, with values set to the minimum size in pixels for the track at that index. Allows individual minSizes to be specified by track. Note this option is plural with an s, while the two fallback options are singular.
ColumnMaxSizes Dictionary<int, int> ColumnMaxSize An object keyed by track index, with values set to the maximum size in pixels for the track at that index. Allows individual maxSizes to be specified by track. Note this option is plural with an s, while the two fallback options are singular.
RowMaxSizes Dictionary<int, int> RowMaxSize An object keyed by track index, with values set to the maximum size in pixels for the track at that index. Allows individual maxSizes to be specified by track. Note this option is plural with an s, while the two fallback options are singular.
SnapOffset int 30 Snap to minimum size at this offset in pixels. Set to 0 to disable snap.
ColumnSnapOffset int SnapOffset Snap to minimum size at this offset in pixels. Set to 0 to disable snap.
RowSnapOffset int SnapOffset Snap to minimum size at this offset in pixels. Set to 0 to disable snap.
DragInterval int 1 Drag this number of pixels at a time. Defaults to 1 for smooth dragging, but can be set to a pixel value to give more control over the resulting sizes.
ColumnDragInterval int DragInterval Drag this number of pixels at a time. Defaults to 1 for smooth dragging, but can be set to a pixel value to give more control over the resulting sizes.
RowDragInterval int DragInterval Drag this number of pixels at a time. Defaults to 1 for smooth dragging, but can be set to a pixel value to give more control over the resulting sizes.
Cursor string 'col-resize' and 'row-resize' Cursor to show while dragging. Defaults to 'col-resize' for column gutters and 'row-resize' for row gutters.
ColumnCursor string 'col-resize' Cursor to show while dragging.
RowCursor string 'row-resize' Cursor to show while dragging.
OnDrag DragEventArgs - Called continuously on drag. For process intensive code, add a debounce function to rate limit this callback. gridTemplateStyle is the computed CSS value for grid-template-column or grid-template-row, depending on direction.
OnDragStart DragEventArgs - Called on drag start.
OnDragEnd DragEventArgs - Called on drag end.
OnColumnsResized SizeEventArgs - Called when the control or any of the columns has been resized (on drag stop). The event contains the new sizes of the columns in pixels as well as the raw size string returned by GetSizes
OnRowsResized SizeEventArgs - Called when the control or any of the rows has been resized (on drag stop). The event contains the new sizes of the rows in pixels as well as the raw size string returned by GetSizes
ResizeDebounceTime TimeSpan 1s The time to wait before OnColumnsResized and OnRowsResized are called when the control itself resizes. This is here to avoid performance issues when resizing multiple columns/rows at once. The default is 1 second.

SplitGridRow / SplitGridColumn

You can specify the MinSize and MaxSize on the gutters which is automatically added to the ColumnMinSizes/RowMinSizes and ColumnMaxSizes/RowMaxSizes properties.

Attribute Type Default Description
MinSize int 0 The minimum size in pixels for this track.
MaxSize int Infinity The maximum size in pixels for this track.

Contributing

For more details check out our contributing guide.

When contributing please keep in mind the Code of Conduct.

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.  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 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.9.1 438 7/21/2025
1.8.0 1,789 7/16/2024
1.7.0 297 1/6/2024
1.6.0 215 5/28/2023
1.5.0 169 5/28/2023
1.4.0 190 5/28/2023
1.3.0 171 5/26/2023
1.2.0 174 5/21/2023
1.1.1 171 5/20/2023
1.1.0 191 5/20/2023
1.0.0 174 5/13/2023

RELEASE_NOTES.md