• Модуль: ui
  • Путь к файлу: ~/bitrix/modules/ui/lib/buttons/buttonattributes.php
  • Класс: BitrixUIButtonsButtonAttributes
  • Вызов: ButtonAttributes::addClass
public function addClass($className)
{
	if (!isset($this['class']))
	{
		$this['class'] = [];
	}

	if (!in_array($className, $this['class'], true))
	{
		$this['class'][] = $className;
	}

	return $this;
}