nattreid / select-box
SelectBox for Nette Framework
Installs: 128
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Language:JavaScript
Requires
- php: >= 7.1
- nette/application: ~2.4
Requires (Dev)
- nette/tester: ~1.7
- tracy/tracy: ~2.4
README
Použití
protected function createComponentSelectBox() { $control = new NAttreid\SelectBox\SelectBox; $control->setTranslator($this->translator); $control->column = 'column'; $control->name = 'columnName'; $control->rows = []; return $control; } protected function createComponentForm() { $form = new \Nette\Forms\Form; $form->addHidden('column', $this->defaultValue); // dalsi php kod return $form; }
a vložíme do latte
{control selectBox, column => 'nazevPolozkyFormulare', name => 'nazev', rows => $data, $first => 'nazev'}