zenstruck / datagrid-bundle
Provides a sortable/filterable/paginated datagrid for your entities.
Installs: 56
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 0
Type:symfony-bundle
Requires
- doctrine/inflector: ~1.0.0
- symfony/symfony: ~2.3
Suggests
- phpexcel/phpexcel: For exporting datagrids
- white-october/pagerfanta-bundle: For paginated grids.
- zenstruck/resource-bundle: For creating RESTful cruds.
This package is auto-updated.
Last update: 2020-10-28 14:16:32 UTC
README
NOTE: This bundle is under heavy development, use at your own risk
Provides a sortable/filterable/paginated datagrid for your entities.
Full Default Configuration
zenstruck_datagrid: # The default template to use when using the twig grid() function. default_template: ZenstruckDataGridBundle:Twitter:blocks.html.twig export: enabled: false base_dir: %kernel.cache_dir%/export global_options: [] types: csv: true xls: true xlsx: true grids: # Prototype name: # The entity (in the short notation) to create a grid for. entity: ~ # Required, Example: AppBundle:Product # The service id for the generated grid. By default it is: "<bundle_prefix>.grid.<grid_name>". service_id: ~ grid_class: ~ # Customize the grid executor (must implement ExecutorInterface) executor_service: ~ # Whether or not to use a paginated grid. paginated: true fields: # Prototype name: label: ~ # Set false to hide on display (can still be filtered/sorted) visible: true filterable: false filter_value: ~ filter_values: ~ searchable: false sortable: false sort_direction: ~ format: ~ align: ~ default: ~
TODO
- sortable
- global filter
- nested entites filter/sort
- split out datagrid functionality into a separate library