public function renderControl(Nette\Forms\IControl $control)
	{
		/** @noinspection PhpUndefinedMethodInspection */
		$controlHtml = $control->getControl();
		/** @noinspection PhpUndefinedMethodInspection */
		$control->setOption(RendererOptions::_rendered, TRUE);
		/** @noinspection PhpUndefinedMethodInspection */
		if (($this->form->showValidation || $control->hasErrors()) && $control instanceof IValidationInput) {
			$controlHtml = $control->showValidation($controlHtml);
		}
		$controlHtml = $this->configElem(Cnf::input, $controlHtml);

		return $controlHtml;
	}
public function renderControl(Nette\Forms\IControl $control)
	{
		/** @noinspection PhpUndefinedMethodInspection */
		$controlHtml = $control->getControl();
		/** @noinspection PhpUndefinedMethodInspection */
		$control->setOption(RendererOptions::_rendered, TRUE);
		/** @noinspection PhpUndefinedMethodInspection */
		if (($this->form->showValidation || $control->hasErrors()) && $control instanceof IValidationInput) {
			$controlHtml = $control->showValidation($controlHtml);
		}
		$controlHtml = $this->configElem(Cnf::input, $controlHtml);

		return $controlHtml;
	}
public function renderControl ( Nette \ Forms \ IControl $ control ) { /** @noinspection PhpUndefinedMethodInspection */ $ controlHtml = $ control -> getControl ( ) ; /** @noinspection PhpUndefinedMethodInspection */ $ control -> setOption ( RendererOptions :: _rendered , TRUE ) ; /** @noinspection PhpUndefinedMethodInspection */ if ( ( $ this -> form -> showValidation || $ control -> hasErrors ( ) ) && $ control instanceof IValidationInput ) { $ controlHtml = $ control -> showValidation ( $ controlHtml ) ; } $ controlHtml = $ this -> configElem ( Cnf :: input , $ controlHtml ) ; return $ controlHtml ; }
Renders 'control' part of visual row of controls.
@param \Nette\Forms\IControl $control
@return string
Renders control part of visual row of controls .