SMART datagrid v.1 > Classes > GridStyles

Back  Forward

DataLudi.GridStyles.shapeSelectedColor  property

Fill object which is used when draw the background color of shape when the cell is selected. 

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

Getter
function shapeSelectedColor(): Fill
Setter
function setShapeSelectedColor(value: String|Fill)
Code -1
    // solid brush
    column.styles().setShapeSelectedColor('#3300ff00');
    // solid brush
    column.styles().setShapeSelectedColor('#00ff00');
    // rgba()
    column.styles().setShapeSelectedColor('rgba(255, 254, 253, 0.5)');
    // linear gradient brush
    column.styles().setShapeSelectedColor('linear,#ffffff,#f0f0f0,90');
See Also
shapeSelectedBorder
shapeColor
shapeBorder
Fill
Colors Setting
Grid Styles Overview
Examples
Shape Cell Renderer
Column Styles
Column Dynamic Styles