zenstruck/datagrid-bundle

This package is abandoned and no longer maintained. No replacement package was suggested.

Provides a sortable/filterable/paginated datagrid for your entities.

v0.1.0 2013-12-11 15:24 UTC

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.

Screenshot

View Example Source Code

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