Action Column

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

Type action
Require
Options
Class Enhavo\Bundle\AppBundle\Column\Type\ActionType
Parent Enhavo\Bundle\AppBundle\Column\AbstractColumnType

Require

action

type: string default: []

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

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

Options

label

type: string default: “”

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

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

translation_domain

type: string default: null

Overwrites the default translation_domain.

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

width

type: integer default: 1

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.

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

sortable

type: boolean default: false

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

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

condition

type: string default: null

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

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