/** * @return \Nette\Forms\Controls\SelectBox */ public function create() { return new SelectBox('Sekce', $this->sectionOptionFactory->getOptionsWithoutHome()); }
public function setup(LazyContainer $container, $sectionId) { $container->addSelect('id_section', 'Sekce webu', $this->sectionOptionFactory->getOptions()); }