Skip to content
🚀 Rapid Application Development with the App Builder

setColor(color, columnName)

Change the color of a specific column.

Scope: TABLE COLUMN

Parameters

ParameterTypeDescription
colorstringCSS color.
columnNamestringThe 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

})