SMART datagrid v.1 > Concepts

Back  Forward

Concepts.Color Overview

There are different ways to specify the color value in GridStyles

Table-1  Color Specifications
Value TypeExampleExplanation
0xAARRGGBB0x2200ff00Must 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.
Code -1
    column.setStyles({
        background: "#1000ff00",
        color: "#ffff0000"
    });
See Also
GridStyles
Examples
Column Styles
Column Dynamic Styles