SMART datagrid v.1 > Classes > GridStyles

Back  Forward

DataLudi.GridStyles.shapeInactiveColor  property

Fill object which is used when draw the background of shape when the shape displayed in cell is inactive. 

The shape is drawn by using canvas or svg api. It can be specified in different ways as the example below. 

Getter
function shapeInactiveColor(): Fill
Setter
function setShapeInactiveColor(value: String|Fill)
Code -1
    // solid fill
    column.styles().setShapeInactiveColor('#3300ff00');
    // solid fill
    column.styles().setShapeInactiveColor('#00ff00');
    // rgba()
    column.styles().setShapeInactiveColor('rgba(255, 254, 253, 0.5)');
    // linear gradient
    column.styles().setShapeInactiveColor('linear,#ffffff,#f0f0f0,90');
    // or
    column.setStyles({
        shapeInactiveColor: '#ff0000',
        shapeInactiveBorder: '#00ff00'
    });
See Also
shapeInactiveBorder
shapeColor
shapeBorder
Fill
Colors Setting
Grid Styles Overview
Examples
Shape Cell Renderer
Column Styles