Grid view for HappyRhino
$ npm install hr.gridview
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();