Column definition
Columns define what content is displayed in tree and list views in the browser subapp.
This column definition is part of the Magnolia 6 UI framework.
The fully qualified class name is
If you work with the Magnolia 5 UI framework, see Column definition for Magnolia 5 UI instead. |
Example definitions
Columns with filter definitions
columns:
value:
filterComponent:
$type: textField
defaultValue: '10'
converterClass: info.magnolia.ui.editor.converter.StartsWithFilteringModeConverter`
columns:
mgnl:activationStatus:
$type: columnComponent
type: java.lang.Boolean
filterComponent:
$type: checkBoxField
defaultValue: true
Columns with combobox filters and datasource definitions
columns:
layout:
filterComponent:
$type: comboBoxField
emptySelectionAllowed: true
datasource:
$type: enumDatasource
enumeration: info.magnolia.ui.field.Layout
columns:
isFeatured:
filterComponent:
$type: comboBoxField
emptySelectionAllowed:
datasource:
$type: optionListDat
options:
- name: true
value: true
label: Featured
columns:
destination:
filterComponent:
$type: comboBoxField
emptySelectionAllowed: tr
datasource:
$type: jcrDatasource
rootPath: /destinations
workspace: category
Column properties
Property | Description | ||||
---|---|---|---|---|---|
|
required (unless The column definition class reads the column configuration and displays the column accordingly. The class must implement the info.magnolia.ui.contentapp.configuration.column.ColumnDefinition interface. You can write your own class or use one of the ready-made classes. See Column types for possible values. |
||||
|
You can use this as a shortcut for Example class annotation
To use the |
||||
|
required, default is Data type of the column. Use the fully qualified class name. See PropertyType for possible values. A default type is typically hard-coded in each definition class. You only need to add this property if you want to override the default implementation.
|
||||
|
optional, default is parent node name Name of the column. |
||||
|
optional Text displayed in the column heading. The value can be literal or a key of a message bundle. If you do not provide the property, Magnolia will fall back to a generated i18n key. |
||||
|
optional Generates a description for the column.
|
||||
|
optional, default is When
|
||||
|
optional Defines the inline editor component. For this to work, you have to set
|
||||
|
required, default is Type of the field definition item. See Field types for possible values. |
||||
|
optional Outlines when inline editing is permitted. See Action availability for more information.
|
||||
|
optional Adds a filter field to the column. Only text, checkbox and combobox fields are supported (see Example definitions). The default value and converter of combobox field are not supported. A node identifier is applied to filtering if the field value is
|
||||
|
optional Defines the ratio with which the column expands. By default, all columns expand equally. |
||||
|
optional Defines the maximum allowed pixel width of the column when it is set to expand. |
||||
|
optional Defines the minimum guaranteed pixel width of the column when it is set to expand. |
||||
|
optional, default is Sets whether the width of the content in the column is the minimum width of the column. When |
||||
|
optional Defines the width (in pixels). When set, overrides any configuration
from |
||||
|
optional, default is When |
||||
|
optional, default is Class extending Vaadin
com.vaadin.ui.renderers.ComponentRenderer is used by columnComponent. info.magnolia.ui.contentapp.configuration.column.renderer.DefaultDateRenderer is used by dateColumn.
|
||||
|
optional Class extending Vaadin
|
We don’t recommend configuring Rather, create a custom column definition instead to prevent misconfiguration errors such as configuring a correct
|
Column types
$type | class |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Extend this class to implement a column with HTML support. The developer is responsible for escaping of external content by extending |