SMART datagrid v.1 > Classes > GridStyles

Back  Forward

DataLudi.GridStyles.selectedColor  property

Fill object which is used when draw the text of selected cell in Column Header or Row Indicator

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

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