Check documentation for the latest version of dhtmlxSuite setBgColor DHTMLX Docs

setBgColor

Sets the background color for the cell.

Parameters

  • $value - (string) the color in the hexadecimal format (without '#')

Example

$cell = new SpreadSheetCell($res, "1","B1", $db_prefix);
$cell->setBgColor('00FF00');

See also: getBgColor, getStyle, setColor

Back to top