SMART datagrid v.1 > Classes > GridStyles
主要被用于绘制单元格背景的Fill对象。
如同下列例题,可以通过多种方式,进行指定。
// solid fill
column.styles().setBackground('#3300ff00');
// solid fill
column.styles().setBackground('#00ff00');
// rgba
column.styles().setBackground('rgba(255, 254, 253, 0.5)');
// linear gradient
column.styles().setBackground('linear,#ffffff,#f0f0f0,90');
// or
column.setStyels({
background: '#ff0000'
color: '#0f0f0f'
});