There are different ways to specify the color value in GridStyles.
Value Type | Example | Explanation |
---|---|---|
0xAARRGGBB | 0x2200ff00 | Must be specified 8 digit numbers. If specify 6 digits, alpha value will become 0, so it will be drawn transparently. |
'#AARRGGBB' '#RRGGBB' '#RGB' | '#20ff0000' '#ff00ff' '#123' | 8 digit string. 6 digit string. alpha will be specified as 1. 3 digit string. alpha will be specified as 1. It will read it as '#112233'. |
'rgba(r, g, b, a)' | 'rgba(123, 222, 33, 0.5)' | r, g, b items are specified from 0 to 255, and alpha is specified between 0 and 1. |
'rgb(r, g, b)' | 'rgb(22, 33, 55)' | alpha will be specified as 1. |
column.setStyles({
background: "#1000ff00",
color: "#ffff0000"
});