public function getLabel($caption = NULL) { $label = clone $this->label; $label->for = $this->getHtmlId(); $label->setText($this->translate($caption === NULL ? $this->caption : $caption)); return $label; }
/** * @return Nette\Utils\Html */ public function getLabelPart() { return parent::getLabel(); }