Maybe usage of `setHtmlId` https://github.com/nette/nette/blob/master/Nette/Forms/Controls/BaseControl.php#L300-L304 is better