• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/grid/tag/row/content/count.php
  • Класс: BitrixTasksGridTagRowContentCount
  • Вызов: Count::prepare
public function prepare(): string
{
	$count = (int)$this->getRowData()['COUNT'];
	$tagId = (int)$this->getRowData()['ID'];
	$onclick = "BX.Tasks.TagActionsObject.show({$tagId}, {$count});";
	$style = '';
	if ($count === 0)
	{
		$onclick = '';
		$style = 'text-decoration: none; cursor: default;';
	}

	return "
	
		$count
	
	";
}