• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/grid/column/ui/layout.php
  • Класс: BitrixMainGridColumnUILayout
  • Вызов: Layout::getColumnStyle
private function getColumnStyle(): string
{
	$result = '';

	$width = $this->column->getWidth();
	if (isset($width))
	{
		$result .= " width:{$width}px;";
	}

	$colorValue = $this->column->getCssColorValue();
	if (isset($colorValue))
	{
		$result .= " background-color:{$colorValue};";
	}

	return trim($result);
}