Page History
Columns define what content is displayed in tree and list views in the browser subapp.
Table of Contents |
---|
Example column definition
Code Block | ||
---|---|---|
| ||
columns: &columns - name: jcrName label: name $type: jcrTitleColumn editable: true nodeTypeToIcon: mgnl:contact: icon-people mgnl:content: icon-folder filterComponent: $type: textField 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 properties
class | required (unless The column definition class reads the column configuration and displays the column accordingly. The class must implement the
| ||||||||||||||||||||||||||||||
$type | You can use this as a shortcut for
To use the | ||||||||||||||||||||||||||||||
name | optional, default is parent node name Name of the column. | ||||||||||||||||||||||||||||||
descriptionGenerator | optional Generates a description for the column. | ||||||||||||||||||||||||||||||
editable | optional, default is 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. | ||||||||||||||||||||||||||||||
editor | optional Defines the inline editor component. | ||||||||||||||||||||||||||||||
| required Outlines when the column can be edited inline. | ||||||||||||||||||||||||||||||
| required, default is Type of the field definition item. See Field types for possible values. | ||||||||||||||||||||||||||||||
expandRatio | optional Defines the ratio with which the column expands. By default, all columns expand equally. | ||||||||||||||||||||||||||||||
filterComponent | optional Adds a filter field to the column. | ||||||||||||||||||||||||||||||
label | optional, default is column name Text displayed to use in the column heading. Can be the text itself or an 18n key. | ||||||||||||||||||||||||||||||
largeContentColumnWidth | optional Width of the column. | ||||||||||||||||||||||||||||||
renderer | optional Class that extends Vaadin | ||||||||||||||||||||||||||||||
valueProvider | optional Class that extends Vaadin | ||||||||||||||||||||||||||||||
width | optional Defines the width (in pixels). When set, overrides any configuration from | ||||||||||||||||||||||||||||||
minimumWidth | optional Defines the minimum guaranteed pixel width of the column when it is set to expand. | ||||||||||||||||||||||||||||||
maximumWidth | optional Defines the maximum allowed pixel width of the column when it is set to expand. |