Skip to content

Column reference

condition

type: string

If a condition is specified, the column will only displayed if the condition is fulfilled.

yaml
columns:
    myColumn:
        condition: my_condition
        # ... further option

format

type: string

Use format to display date. You can find all possible values on the date page of the php documentation.

yaml
columns:
    myColumn:
        date: r
        # ... further option

label

type: string

Overwrite the default label. It will be translated over the translation service automatically. (See translation_domain)

yaml
columns:
    myColumn:
        label: myLabel
        # ... further option

property

type: string

Defines which property of the resource is used for the column. The resource has to provide a getter method for that property.

yaml
column:
    myColumn:
        property: myEntityProperty

separator

type: string

Define with which char the list should be separated.

yaml
columns:
    myColumn:
        separator: 'mySeparator'

separator

type: string

Define with which char the list should be separated.

yaml
columns:
    myColumn:
        separator: 'mySeparator'

sortable

type: boolean

If value is true, the table can be sorted by the value in this column.

yaml
columns:
    myColumn:
        sortable: true|false
        # ... further option

sorting_property

type: string

Defines which property of the resource the column is sorted by. The resource must provide a getter method for this property.

yaml
columns:
    myColumn:
        sorting_property: myEntityProperty
        # ... further option

translation_domain

type: string

Overwrites the default translation_domain.

yaml
columns:
    myColumn:
        translation_domain: my_translation_domain
        # ... further option

width

type: integer

Define the width of the column. The default value is 1. Because we are using a 12 column bootstrap grid you have to define a width between 1 and 12. Remind that the sum of all columns in a certain table should be 12.

yaml
columns:
    myColumn:
        width: [1-12]
        # ... further option

Action

This column type allows the user to integrate any action including all its functionality in this column.

Typeaction
ClassEnhavo\Bundle\AppBundle\Column\Type\ActionType
Inherit Optionslabel, translation_domain, condition, width, permission, component

action

type: string

The action to be placed in the column. Take a look to all possible actions here <action>.

yaml
columns:
    myColumn:
        type: action
        action:
            type: myAction
            route: my_action_route
            # ... further action options
        # ... further column options

Boolean

Shows a tick or cross for a boolean value.

Typeboolean
ClassEnhavo\Bundle\AppBundle\Column\Type\BooleanType
Optionsproperty*
Inherit Optionslabel, translation_domain, condition, width, permission, component, sorting_property

Comment state

Date

Shows a formatted date.

Typeboolean
ClassEnhavo\Bundle\AppBundle\Column\Type\DateType
Optionsproperty*
Inherit Optionslabel, translation_domain, condition, width, permission, component, sorting_property

DateTime

Shows a formatted date. Works exactly like the Date Column <date_column>, only the default format is different and shows a date and the time.

Typeaction
ClassEnhavo\Bundle\AppBundle\Column\Type\DateTimeType
Inherit Optionslabel, translation_domain, condition, width, permission, component
## Label

Shows a string.

Typelabel
ClassEnhavo\Bundle\AppBundle\Column\Type\LabelType
Optionsproperty*
Inherit Optionslabel, translation_domain, condition, width, permission, component

List

Shows all values of a collection as a list.

Typelist
ClassEnhavo\Bundle\AppBundle\Column\Type\LabelType
Optionsproperty*, item_property*, separator
Inherit Optionslabel, translation_domain, condition, width, permission, component

item_property

type: string

Defines the property of the items to be used for display within the collection. You can use existing properties of the class or a specially created getter method that returns a string composed of multiple properties.

yaml
buttons:
    myColumn:
        property: groups
        item_property: myEntityProperty

Media

Multiple Property

Shows a list of properties of the given resource.

Typemultiply_property
ClassEnhavo\Bundle\AppBundle\Column\Type\MultiplePropertyColumn
Optionsproperties*, seperator,
Inherit Optionslabel, translation_domain, condition, width, permission, component

properties

type: string

Define an array of properties that should be displayed as list.

yaml
buttons:
    myColumn:
        properties:
            - firstname
            - lastname

Newsletter State

Picture

Show a thumbnail

Typepicture
ClassEnhavo\Bundle\MediaBundle\Column\PictureColumn
Optionsproperty*picture_widthpicture_height
Inherit Optionslabel, translation_domain, condition, width, permission, component

picture_height

type: integer

Define the height of the thumbnail in pixels. The default value is 60. This value will influence the height of the whole table row.

yaml
columns:
    myColumn:
        picture_height: 60
        # ... further option

picture_width

type: integer

Define the width of the thumbnail in pixels. The default value is 60. If the column the column is in is smaller than this value, the thumbnail will be resized to fit the column.

yaml
columns:
    myColumn:
        picture_width: 60
        # ... further option

Position

Display arrows to move the current row up and down to change its position.

Typeposition
ClassEnhavo\Bundle\AppBundle\Column\Type\PositionColumn
Inherit Optionslabel, translation_domain, condition, width, permission, component

Property

Display a property of a resource.

Typeproperty
ClassEnhavo\Bundle\AppBundle\Column\Type\PropertyColumn
Optionsproperty*
Inherit Optionslabel, translation_domain, condition, width, permission, component

Template

Renders specific template with a certain property of a resource.

Typetemplate
ClassEnhavo\Bundle\AppBundle\Column\Type\PropertyColumn
Optionstemplate*
Inherit Optionslabel, translation_domain, condition, width, permission, component

Text

Url