Columns define what content is displayed in tree and list views in the browser subapp.
Example column definition
columns: &columns - name: jcrName label: name $type: jcrNameColumn editable: true nodeTypeToIcon: mgnl:contact: icon-people mgnl:content: icon-folder editor: availability: nodes: true properties: true - name: value label: value editable: true editor: availability: nodes: false properties: true - name: jcrPath label: path $type: jcrPathColumn - name: status label: status $type: jcrStatusColumn - name: mgnl:created $type: dateColumn label: date editable: false editor: availability: *onlyContacts field: $type: textField converterClass: com.vaadin.data.converter.StringToDateConverter
Column definition properties
class
| required The column definition class reads the column configuration and displays the column accordingly. The class must implement the
If the definition class is annotated with |
$type | You can use this as a shortcut for To use the |
editable
| optional Defines whether the column is editable inline. You can double-click a cell to edit its value. You cannot define a default action and use inline editing at the same time. |
expandRatio
| optional, default is 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 |
label
| optional, default is column name Text displayed to use in the column heading. Can be the text itself or an 18n key. |
name | optional, default is parent node name Name of the column. |