src/Controls/TextInputCustomLabel.php
public static function register($control_name = 'addTextCustomLabel') {
		Nette\Object::extensionMethod(
			'Nette\Forms\Container::' . $control_name,
			function ($form, $name, $label = NULL, array $items = NULL) {
				$control = new self($label, $items);

				return $form[$name] = $control;
			}
		);
	}
public static function register($control_name = 'addTextCustomLabel') {
		Nette\Object::extensionMethod(
			'Nette\Forms\Container::' . $control_name,
			function ($form, $name, $label = NULL, array $items = NULL) {
				$control = new self($label, $items);

				return $form[$name] = $control;
			}
		);
	}
Register TextInputCustomLabel
@param  string $control_name string
@return void