SMART datagrid v.1 > Classes > GridStyles

Back  Forward

DataLudi.GridStyles.inactiveBackground  property

被用于绘制删除行的单元格背景等的Fill对象。 

如同下列例题,可以通过多种方式,进行指定。 

Getter
function inactiveBackground(): Fill
Setter
function setInactiveBackground(value: String|Fill)
Code -1
    // solid fill
    column.styles().setInactiveBackground('#3300ff00');
    // solid fill
    column.styles().setInactiveBackground('#00ff00');
    // rgba
    column.styles().setInactiveBackground('rgba(255, 254, 253, 0.5)');
    // linear gradient
    column.styles().setInactiveBackground('linear,#ffffff,#f0f0f0,90');
    // or
    column.setStyles({
        inactiveBackground: '#ff0000',
        inactiveColor: '#00ff00'
    });
See Also
Fill
inactiveColor
background
颜色设置
网格样式概述
Examples
列样式
列动态样式