Skip to content

jan-oliva/JO-EntityGridoManager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Example

grid builder class

class GridBuilder  extends \JO\Nette\Doctrine\EntityGridoManager
{
/**
 *
 * @return Grid
 */
public function registerColumns()
{
    $this->dg->model = $this->em->getRepository($this->entity)->getGridDataSource();

    $this->addCols(['name','slug','description'],true,true);

    $this->dg->setFilterRenderType(Filter::RENDER_INNER);


    return $this->dg;
}
}

presenter

protected function createComponentProductGroupGrid($name)
{
    $this->gridBuilder = new GridBuilder('entityClassName', $entityManager, new \Grido\Grid($this, $name)$this->translator);
    return $this->gridBuilder->registerColumns();
}

About

entity manager for grido/grid

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages