library entity-grid
Used for creating entity grids with search form and detail form. Designed for Nette.
jax-p/entity-grid
Used for creating entity grids with search form and detail form. Designed for Nette.
- Friday, April 13, 2018
- by Jax-p
- Repository
- 0 Watchers
- 0 Stars
- 22 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 1 Versions
- 57 % Grown
EntityGrid
Used for creating entity grids with search form and detail form. Designed for Nette and Nette Database Explorer., (*1)
Features:
- Pagination
- Per page selection
- Search (in grid - for every column of item)
- Hide/Show selected columns
- Order (by every column of item, even if it's related value)
- Add/Edit/Delete rows
- Ajax behavior
- Optional form renderer (for example Bootstrap)
Preview:
, (*2)
Font Awesome is required to render SVG icons
* Font Awesome: ~ v5, (*3)
Installation
- Install via composer
composer require jax-p/entity-grid
composer install
- Create component in presenter
```
/**
- @return EntityGrid
*/
protected function createComponentEntityGrid() {
$control = new EntityGrid($this->model, $this->grid_options, $this->_session);
return $control;
}
```
- Call the component in template (renders grid)
{control entityGrid $page}
- Call the components detail in template (renders edit form) (optional)
{control entityGrid:detail $item}