PHPackages                             cwd/grid-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. cwd/grid-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

cwd/grid-bundle
===============

A Simple Table Grid Bundle

1.0.7(7mo ago)39821MITPHPPHP &gt;=8.1

Since Jul 18Pushed 7mo ago2 watchersCompare

[ Source](https://github.com/cwd/cwdGridBundle)[ Packagist](https://packagist.org/packages/cwd/grid-bundle)[ RSS](/packages/cwd-grid-bundle/feed)WikiDiscussions develop Synced 2w ago

READMEChangelog (9)Dependencies (14)Versions (34)Used By (1)

Available Column Types:
-----------------------

[](#available-column-types)

### EnumType

[](#enumtype)

The column is designed to display and filter data based on a PHP-backed `enum`. It automatically generates a dropdown filter containing all the enum cases, making it easy for users to filter the grid by a specific enum value. `EnumType`The display values and the filter options are automatically translated using Symfony's translator. The enum's case value is used as the translation key.

#### Options

[](#options)

- `class` (required): The fully qualified class name of the backed enum.
- `allOptionsLabel`: The translation key for the default "all" option in the filter dropdown. Defaults to `'all'`.
- `translatable`: When `true` (default), the enum value will be passed through the translator.

#### Usage Example

[](#usage-example)

Here's how to configure a column in your grid: `EnumType`

```
->add(new EnumType('companyAddressState', 'certificate.companyAddressState', [
    'label' => 'State',
    'class' => State::class,
    'allOptionsLabel' => 'all states',
]))
```

This column requires a corresponding PHP enum definition:

```
