Form::setDesignOptions

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. Form
  4. setDesignOptions
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/webform/form.php
  • Класс: Bitrix\Crm\WebForm\Form
  • Вызов: Form::setDesignOptions
public function setDesignOptions(array $options = [])
{
	$designOptions = (new Design($options))->getOptions();
	unset($designOptions['backgroundImage']);
	$this->params['FORM_SETTINGS']['DESIGN'] = $designOptions;

	$this->params['BUTTON_COLOR_BG'] = $options['color']['primary']
		?: $this->params['BUTTON_COLOR_BG'];

	$this->params['BUTTON_COLOR_FONT'] = $options['color']['primaryText']
		?: $this->params['BUTTON_COLOR_FONT'];

	return $this;
}

Добавить комментарий