• Модуль: ui
  • Путь к файлу: ~/bitrix/modules/ui/lib/buttons/lockedbutton.php
  • Класс: BitrixUIButtonsLockedButton
  • Вызов: LockedButton::init
protected function init(array $params = [])
{
	parent::init($params);

	$this->setDisabled();

	$this->getAttributeCollection()->addClass('ui-btn-icon-lock');

	$hint = $params['hint'] ?? null;
	if ($hint)
	{
		$this->hasHint = true;
		$this->addDataAttribute('hint', $hint);
		$this->addDataAttribute('hint-no-icon', true);
	}
}