SMART datagrid v.1 > Classes > GridStyles

Back  Forward

DataLudi.GridStyles.shapeColor  property

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

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

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