/** * This method will be called when the component becomes attached to Form. * @param IComponent * @return void */ protected function attached($form) { parent::attached($form); $this->processAttaching($form); }
/** * @param $form */ protected function attached($form) { parent::attached($form); if ($form instanceof Nette\Forms\Form) { $this->initialize($form); } }