Example #1
0
 protected function createComponentGridUle($name)
 {
     $grid = new Grid($this, $name);
     $grid->setModel($this->ul->findAll()->where('idVcelnica', $this->getParameter('id')));
     $grid->addColumnText('nazov', 'Názov ula');
     $grid->addActionHref('detail', 'Detail', 'Ul:detail');
 }
Example #2
0
 protected function createComponentGridUle($name)
 {
     $grid = new Grid($this, $name);
     $grid->setModel($this->ul->findAll());
     $grid->addColumnText('nazov', 'Názov úľa');
     $grid->addColumnText('idCiselnikTypUla', 'typ ula')->setColumn(function ($item) {
         return $item->ciselnikTypUla->nazov;
     });
     $grid->addActionHref('detail', 'Detail');
     $grid->addActionHref('delete', 'Zmaz');
 }