hr.gridview

0.3.0 • Public • Published

hr.gridview Build Status

Grid view for HappyRhino

Installation

$ npm install hr.gridview

Documentation

Create a new grid:

var GridView = require("hr.gridview");

var grid = new GridView();

Append views:

grid.addView(yourView);
grid.addView(yourSecondView);

Change layout by changing the number of columns:

// Default is 0, for an auto grid layout
grid.setLayout(0);

// the 2 views will be side by side
grid.setLayout(2);

// the first view will be on top of the other
grid.setLayout(1);

Hide a view from the grid without removing it:

yourView._gridOptions.enabled = false;
grid.update();

Readme

Keywords

none

Package Sidebar

Install

npm i hr.gridview

Weekly Downloads

5

Version

0.3.0

License

none

Last publish

Collaborators

  • samypesse