SMART datagrid v.1 > Classes > GridStyles

Back  Forward

DataLudi.GridStyles.background  property

Fill object which is used mainly when draw cell background. 

You can specify in different ways as the example below. 

Getter
function background(): Fill
Setter
function setBackground(value: String|Fill)
Code -1
    // solid fill
    column.styles().setBackground('#3300ff00');
    // solid fill
    column.styles().setBackground('#00ff00');
    // rgba
    column.styles().setBackground('rgba(255, 254, 253, 0.5)');
    // linear gradient
    column.styles().setBackground('linear,#ffffff,#f0f0f0,90');
    // or
    column.setStyels({
        background: '#ff0000'
        color: '#0f0f0f'
    });
See Also
color
Grid Styles Overview
Colors Setting
Fill
Examples
Column Styles
Column Dynamic Styles