Skip to content

HappyRhino/hr.gridview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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();