SMART datagrid v.1 > Classes > GridBase

Back  Forward

DataLudi.GridBase.body  property

GridBody object which manages the properties of grid body area displaying data cells. 

Style Set of all columns inherits Style Set being set in this object. In other words, the property which is not specified in column style will inherit the value set in cellStylesGridBody object will be created when create the grid, and if specify values through this property, the properties of this object will be changed. 

Getter
function body(): GridBody
Setter
function setBody(value: Object|GridBody)
Note
Code -1
    // Set options when initialize the grid.
    grid.setOptions({
        header: {
        },
        footer: {
        },
        body: {
            cellStyles: {
                fontSize: 12
            }
        }
    });
    // Specify the property in grid level.
    grid.setBody({
        cellStyles: {
            fontSize: 12
        }    
    });
    // Can also specify in GridBody level.
    grid.body().setStyles({
        cellStyles: {
            fontSize: 12
        }    
    });
See Also
header
footer
panel
GridBody
GridStyles
Examples
Hello Grid
Row Styles