SMART datagrid v.1 > Classes > GridColumn

Back  Forward

DataLudi.GridColumn.styles  property

Style used in displaying column cells. 

If no other settings, it will draw the data cells being included in this column by using this style set. The style changed by calling Setter is immediately reflected in grid. 

Getter
function styles(): GridStyles
Setter
function setStyles(value: Object|GridStyles)
Note
When creating column, it will be created automatically within column object. When calling Setter, it will reflect the style values transferred by parameter in internal style object.
Code -1
    var column = grid.columnByName('Address');
    if (column) {
        // Change various style values at once.
        column.setStyles({
            background: "#ffff00",
            fontSize: 20
        });
        
        // Can also change individually.
        var styles = column.styles();
        styles.setBackground("#ffff00");
        styles.setFontSize(20);
    }
See Also
styleName
GridStyles
Examples
Column Styles