public function addFormControl(\Nette\Forms\Form $form, Builder\Metadata $meta) { $input = new \Vodacek\Forms\Controls\DateInput($meta->label, $meta->type); $form->addComponent($input, $meta->name); $this->addConditions($input, $meta->conditions); return $input; }