protected function createComponentForm() { $form = new Form(); $form->addTbDateTimePicker('dateTime', 'Date and time:')->setRequired()->setAttribute('class', 'datetimepicker'); $form->onSuccess[] = $this->processForm; $this->renderer->render($form); return $form; }