Appearance
setColor(color, columnName)
Change the color of a specific column.
Scope: TABLE COLUMN
Parameters
| Parameter | Type | Description |
|---|---|---|
| color | string | CSS color. |
| columnName | string | The name of the database table column. |
Parameter columnName can be omitted in table column hooks.
Return Value
None
✨ Example
js
((columnName, originalValue, renderedValue, row) => {
setRowColor("blue")
setRowBackgroundColor("green")
setColor("red", "deptno")
setBackgroundColor("yellow", "deptno")
return renderedValue
})