コード例 #1
0
 /**
  * @return \Admin\Grid
  */
 protected function createPreparedGrid()
 {
     $grid = new Grid();
     $grid->translator->setLang('cs');
     $grid->setFilterRenderType(Filter::RENDER_INNER);
     return $grid;
 }
コード例 #2
0
 /**
  * @param \Grido\Grid $grid
  * @return \Grido\Components\Actions\Href
  * @throws \Exception
  */
 public function addEditAction(Grid $grid)
 {
     $return = $grid->addActionHref('edit', 'Editovat');
     $return->setIcon('pencil')->getElementPrototype()->class = 'btn-dark-blue';
     return $return;
 }