SMART datagrid v.1 > Classes > GridStyles

Back  Forward

DataLudi.GridStyles.shapeHoveredColor  property

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

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

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