SquareGridLib 1.0.6-origin-master0000

This is a prerelease version of SquareGridLib.
dotnet add package SquareGridLib --version 1.0.6-origin-master0000                
NuGet\Install-Package SquareGridLib -Version 1.0.6-origin-master0000                
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="SquareGridLib" Version="1.0.6-origin-master0000" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SquareGridLib --version 1.0.6-origin-master0000                
#r "nuget: SquareGridLib, 1.0.6-origin-master0000"                
#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 SquareGridLib as a Cake Addin
#addin nuget:?package=SquareGridLib&version=1.0.6-origin-master0000&prerelease

// Install SquareGridLib as a Cake Tool
#tool nuget:?package=SquareGridLib&version=1.0.6-origin-master0000&prerelease                

SquareGridLib

NuGet
Provides a 2D grid component on which you can place panels of customizable size.

How to use

This short snippet shows the basic functionality of the component:

<style>
    .my-item {
        border: 1px solid black;
    }
</style>
<SquareGrid>
    <Items>
        <SquareGridItem>
            <div class="my-item">This is a dynamically positioned item.</div>
        </SquareGridItem>
        <SquareGridItem X="3" Y="4">
            <div class="my-item">You can specify the item's position using 'X' and 'Y'.</div>
        </SquareGridItem>
        <SquareGridItem Height="3" Width="2" X="2" Y="2">
            <div class="my-item">Height and width can be changed as well.</div>
        </SquareGridItem>
        <SquareGridItem>
            <div class="my-item">This is a dynamically positioned item.</div>
        </SquareGridItem>
        <SquareGridItem>
            <div class="my-item">This is a dynamically positioned item.</div>
        </SquareGridItem>
    </Items>
</SquareGrid>

This is what the output looks like, it's very ugly but the structure is what matters. Elements without a fixed position will flow around the elements that do. image

For more details check out the SquareGridLibDemo project, specifically Pages/Grid.razor.

To do

  • Method on the component void Pack() that tries to pack all items compactly.
  • Missing something? Open an issue!
Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  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. 
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.6-origin-master0000 333 10/23/2023
1.0.1 118 9/6/2024
1.0.0 383 10/23/2023