0.2.0 • Published 4 years ago

ng-static-grid v0.2.0

Weekly downloads
5
License
MIT
Repository
github
Last release
4 years ago

NgStaticGrid

A librariy for a simple and more static grid than gridstack.js. Main goal is that the elements can be position static on the remaining screen and stay in their position.

Main purpose are full screen dashboards -- where the user wan't to have a static postion of the widgets, like on a table.

Links

How to use

Install npm module

npm install ng-static-grid --save

Adjust app.module.ts

import { NgStaticGridModule } from 'ng-static-grid'

  imports: [
    // ... omitted
    NgStaticGridModule
  ],

Use it

Default is a 12 x 12 grid with 100% width and 100% hight, if nothing set.

<ng-static-grid-panel>
    <ng-static-grid-item width="2" height="2">
        Top Left
    </ng-static-grid-item>
    <ng-static-grid-item x="10" width="2" height="2">
        Top Right
    </ng-static-grid-item>

    <ng-static-grid-item x="4" y="4" width="3" height="3">
        Center
    </ng-static-grid-item>

    <ng-static-grid-item x="1" y="11" width="10">
        Footer
    </ng-static-grid-item>
</ng-static-grid-panel>

Setting the default would be look like:

<ng-static-grid-panel rows="12" columns="12" width="100%" height="100%">
</ng-static-grid-panel>
0.2.0

4 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago