Column reference
condition
type: string
If a condition is specified, the column will only displayed if the condition is fulfilled.
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.
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)
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.
column:
myColumn:
property: myEntityProperty
separator
type: string
Define with which char the list should be separated.
columns:
myColumn:
separator: 'mySeparator'
separator
type: string
Define with which char the list should be separated.
columns:
myColumn:
separator: 'mySeparator'
sortable
type: boolean
If value is true, the table can be sorted by the value in this column.
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.
columns:
myColumn:
sorting_property: myEntityProperty
# ... further option
translation_domain
type: string
Overwrites the default translation_domain.
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
.
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.
Type | action |
Class | Enhavo\Bundle\AppBundle\Column\Type\ActionType |
Inherit Options | label, 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>
.
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.
Type | boolean |
Class | Enhavo\Bundle\AppBundle\Column\Type\BooleanType |
Options | property* |
Inherit Options | label, translation_domain, condition, width, permission, component, sorting_property |
Comment state
Date
Shows a formatted date.
Type | boolean |
Class | Enhavo\Bundle\AppBundle\Column\Type\DateType |
Options | property* |
Inherit Options | label, 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.
Type | action |
Class | Enhavo\Bundle\AppBundle\Column\Type\DateTimeType |
Inherit Options | label, translation_domain, condition, width, permission, component |
Shows a string.
Type | label |
Class | Enhavo\Bundle\AppBundle\Column\Type\LabelType |
Options | property* |
Inherit Options | label, translation_domain, condition, width, permission, component |
List
Shows all values of a collection as a list.
Type | list |
Class | Enhavo\Bundle\AppBundle\Column\Type\LabelType |
Options | property*, item_property*, separator |
Inherit Options | label, 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.
buttons:
myColumn:
property: groups
item_property: myEntityProperty
Media
Multiple Property
Shows a list of properties of the given resource.
Type | multiply_property |
Class | Enhavo\Bundle\AppBundle\Column\Type\MultiplePropertyColumn |
Options | properties*, seperator, |
Inherit Options | label, translation_domain, condition, width, permission, component |
properties
type: string
Define an array of properties that should be displayed as list.
buttons:
myColumn:
properties:
- firstname
- lastname
Newsletter State
Picture
Show a thumbnail
Type | picture |
Class | Enhavo\Bundle\MediaBundle\Column\PictureColumn |
Options | property*picture_widthpicture_height |
Inherit Options | label, 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.
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.
columns:
myColumn:
picture_width: 60
# ... further option
Position
Display arrows to move the current row up and down to change its position.
Type | position |
Class | Enhavo\Bundle\AppBundle\Column\Type\PositionColumn |
Inherit Options | label, translation_domain, condition, width, permission, component |
Property
Display a property of a resource.
Type | property |
Class | Enhavo\Bundle\AppBundle\Column\Type\PropertyColumn |
Options | property* |
Inherit Options | label, translation_domain, condition, width, permission, component |
Template
Renders specific template with a certain property of a resource.
Type | template |
Class | Enhavo\Bundle\AppBundle\Column\Type\PropertyColumn |
Options | template* |
Inherit Options | label, translation_domain, condition, width, permission, component |