NOTE: This bundle is under heavy development, use at your own risk
Provides a sortable/filterable/paginated datagrid for your entities.
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: ~
- sortable
- global filter
- nested entites filter/sort
- split out datagrid functionality into a separate library