Column definition - 5 UI
Deprecated
This column definition has been deprecated since Magnolia 6.0. It is part of the Magnolia 5 UI framework. For the updated implementation, see Column definition for Magnolia 6 UI instead. |
Columns define what content is displayed in tree and list views in the browser subapp. Here is an example of column configuration in My first content app.
columns:
- name: jcrName
editable: true
sortable: true
propertyName: jcrName
class: info.magnolia.ui.workbench.column.definition.PropertyColumnDefinition
- name: status
width: 45
displayInChooseDialog: false
formatterClass: info.magnolia.ui.workbench.column.StatusColumnFormatter
class: info.magnolia.ui.workbench.column.definition.StatusColumnDefinition
Column definition properties
Property | Description | ||
---|---|---|---|
|
required The column definition class reads the column configuration and displays
the column accordingly. The class must implement the
|
||
|
required only when using Name of the property to display. Needed when using the |
||
|
optional, default it Makes the column editable inline. You can double-click a cell to edit its value. Inline editing is available only in the tree view, not in list, thumbnail or search views.
|
||
|
optional, default is Defines whether the column is displayed in the workbench or not. |
||
|
optional, default is `1.0` Defines how excess space is divided among columns. A table can have
excess space if its width is defined and there is more horizontal space
than is occupied by the column data. In a three-column workbench with
expand ratios |
||
|
optional Defines how the column’s value is displayed in the UI. This is useful for making raw data more readable or adhering to a formatting convention. The Contacts app implements
The formatter class must implement the
|
||
|
optional, default is Displays the column in a choose dialog. |
||
|
optional, default is column Text displayed to use in the column heading. Can be the text itself or an 18n key. |
||
|
optional, default is the parent node name Name of the column. |
||
|
optional, default is Allows the user to sort the data by clicking the column heading. |
||
|
optional Column width in pixels. Five pixels are deducted for left margin so when you define width 60 you get 55 pixels of space for data. Set the value to a number without unit. |