SMART datagrid v.1 > Classes > GridStyles
当鼠标位于单元格上方时,被用于绘制显示在单元格的形状背景颜色的Fill对象。
通过使用canvas或svg api,绘制形状。 如同下列例题,可以通过多种方式,进行指定。
// 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'
});