CardViewTemplate
This page provides generated reference documentation for the CardViewTemplate data model.
Displays up to 5 entity fields of one single dataset, styled like a business card. All fields have fixed positions: On the left, an image (property "iconField"), on the right 4 further fields, in vertical order (properties "titleField", "subtitleField", "descriptionField", and "informationField").
Overview
| Property | Summary |
|---|---|
| colspan | The colspan of the element. |
| descriptionField | Field, which holds the description text |
| devices | Determines on wich devices the component should be available. |
| editRendererMapping | Mapping that specifies how an entity field should be rendered in edit mode. If no custom mapping is defined the default renderers are used. |
| entityField | This property is mandatory. Its value must be set to 1. #ENTITY, when the ViewTemplate uses multiple EntityFields of the Entity belonging to the View… |
| favoriteAction1 | First actiongroup for additional actions |
| favoriteAction2 | Second actiongroup for additional actions |
| iconField | Field, which determines the icon |
| informationField | Defines the field which provides additional information. The placement of the information label varies between the ViewTemplates. The information label is only… |
| isEditable | Editable yes/no. |
| objectType | Field which stores the objectType of the favorite |
| rowId | Field which stores the rowId of the favorite |
| rowspan | The rowspan of the element. |
| subtitleField | Field, which hold an additional title. Shown below the title. |
| title | Title of the component |
| titleField | Field, which holds the title |
| viewRendererMapping | Mapping that specifies how an entity field should be rendered in view mode. If no custom mapping is defined the default renderers are used. |
colspan
Type: Integer
Default: 1
Constraints: Minimum: 0, Maximum: Integer.MAX_VALUE
The colspan of the element.
descriptionField
Type: String
Field, which holds the description text
devices
Type: EDeviceType[]
Determines on wich devices the component should be available.
The default value states that the component is available on all devices. If one or more devices are selected then the component is only available for those selected devices.
editRendererMapping
Type: RendererMappingDataModel
Mapping that specifies how an entity field should be rendered in edit mode. If no custom mapping is defined the default renderers are used.
entityField
Type: String
This property is mandatory. Its value must be set to
#ENTITY, when the ViewTemplate uses multiple EntityFields of the Entity belonging to the View (default).- a single EntityField, if the ViewTemplate uses only this one single EntityField (example: WebContentViewTemplate).
The second option will result in a performance optimization.
favoriteAction1
Type: String
First actiongroup for additional actions
favoriteAction2
Type: String
Second actiongroup for additional actions
iconField
Type: String
Field, which determines the icon
informationField
Type: String
Defines the field which provides additional information. The placement of the information label varies between the ViewTemplates. The information label is only shown once per ViewTemplate.
isEditable
Type: Boolean
Default: true
Editable yes/no.
objectType
Type: String
Field which stores the objectType of the favorite
rowId
Type: String
Field which stores the rowId of the favorite
rowspan
Type: Integer
Default: 1
Constraints: Minimum: 0, Maximum: Integer.MAX_VALUE
The rowspan of the element.
subtitleField
Type: String
Field, which hold an additional title. Shown below the title.
title
Type: String
Constraints: Verification: TITLE_LENGTH
Title of the component
titleField
Type: String
Field, which holds the title
viewRendererMapping
Type: RendererMappingDataModel
Mapping that specifies how an entity field should be rendered in view mode. If no custom mapping is defined the default renderers are used.