SMART datagrid v.1 > Classes > GridStyles

Back  Forward

DataLudi.GridStyles.hoveredBackground  property

Fill object which is used when draw the background of cell over which has located the mouse in Column Header or Row Indicator

It can be specified in different ways as the example below. 

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