jax-p / entity-grid
Used for creating entity grids with search form and detail form. Designed for Nette.
dev-master
2018-04-13 12:36 UTC
Requires
- php: >=7
- nette/nette: ~2.0
This package is not auto-updated.
Last update: 2024-10-27 05:57:27 UTC
README
Used for creating entity grids with search form and detail form. Designed for Nette and Nette Database Explorer.
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:
Extra requirements:
Font Awesome is required to render SVG icons
- Font Awesome: ~ v5
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}