Skip to content
This repository has been archived by the owner on Oct 28, 2020. It is now read-only.

kbond/ZenstruckDataGridBundle

Repository files navigation

ZenstruckDataGridBundle

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

About

Provides a sortable/filterable/paginated datagrid for your entities

Resources

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published