Jsgrid Javascript Grid Framework

createchilds

The method createchilds is realized by setting onlycolumn property true in the settings of init method. It generates only collumns of the grid view, the parentNodes of grid cells. No grid cell is created. But you can add grid cells using addgrid method in the area of the grid view.

Syntax

objgrid.createchilds()
var pggrid = new jsgrid(); 
        pggrid.init({ 
        id: "wrp", 
        rows: 5, 
        columns: 12, 
        width: 25, 
        height: 20, 
        gutter: 1,
        backgroundColor: "#7fffd4",
        onlycolumn: true 
        }); 
        
    pggrid.addgrid([1,2]);
    pggrid.addgrid([1,3]);

    var g1 = pggrid.grid([1,2]);
    var g2 = pggrid.grid([1,3]);

    pggrid.addstyle([g1,g2],{backgroundColor:"#df0"})

Grid View