SMART datagrid v.1 > Classes > ShapeCellRenderer
当决定行高和样式的内边距(Padding)以及通过GridStyles.shapeSize而决定Shape的大小之后,通过scaleX值,调整水平大小。
默认值为1.0.
grid.setColumns([{
name: "Quantity",
fieldName: "Quantity",
type: "data",
width: 70,
renderer: {
type: "shape",
scaleX: 1.0,
scaleY: 0.7
},
styles: {
textAlignment: "far"
},
dynamicStyles: [{
expression: "value > 40",
styles: {
shapeName: "star",
shapeColor: "#ff00ffcc",
shapeLocation: "center"
}
}],
header: {
text: "Quantity"
}
},
...
]);