SMART datagrid v.1 > Classes > GridStyles

Back  Forward

DataLudi.GridStyles.shapeInactiveColor  property

当显示在单元格的形状为闲置状态时,将会被用于绘制形状的背景颜色的Fill对象。 

通过使用canvas或svg api,绘制形状。 如同下列例题,可以通过多种方式,进行指定。 

Getter
function shapeInactiveColor(): Fill
Setter
function setShapeInactiveColor(value: String|Fill)
Code -1
    // solid fill
    column.styles().setShapeInactiveColor('#3300ff00');
    // solid fill
    column.styles().setShapeInactiveColor('#00ff00');
    // rgba()
    column.styles().setShapeInactiveColor('rgba(255, 254, 253, 0.5)');
    // linear gradient
    column.styles().setShapeInactiveColor('linear,#ffffff,#f0f0f0,90');
    // or
    column.setStyles({
        shapeInactiveColor: '#ff0000',
        shapeInactiveBorder: '#00ff00'
    });
See Also
shapeInactiveBorder
shapeColor
shapeBorder
Fill
颜色设置
网格样式概述
Examples
形状单元格渲染器
列样式