Condensed Card
Note
See Condensed Data for explanation how condensed data handling works.
Note
Array references can not be used in Condensed Card templates.
Contains the definition how to present condensed_data
in card view.
One Condensed Card definition will be used to display multiple cards - one per record (row) of Condensed Data.
Model
attribute | description |
---|---|
header* Text Node |
Card header |
body[Field Node] |
Card content |
severitycdid |
Pointer to the cards severity level - the target value must be a valid Severity or null |
actions[Action] |
Actions available in the card |
links[Link] |
Links to related entities in the data model |
is_inactivecdid |
Pointer to the cards inactivity flag - the target value must be a bool value. If not set, it defaults to false . |
Field Node
attribute | description |
---|---|
labelText Node |
Field label |
valueText Node |
Field value |
Text Node
Either data
or content
attribute must be present.
attribute | description |
---|---|
datacdid |
Pointer to data to be displayed within the given record - if the target data is null then this Text Node must be ignored |
contentstring |
The value to display |
filters[Display Filter] |
An array of filters to be applied to the value displayed |
Action
attribute | description |
---|---|
label* i18n |
Label describing the action |
rpc_method* cdid |
Pointer to data to be used as the name of the RPC method to call - if the target data is null no action is available |
rpc_parameters{ string: string } |
An object holding parameters to be used in RPC call, where the key is name of the parameter and value is the cdid of the data to be used as parameter. |
Link
Exactly one of the attributes seid
, status_info
and query
must be present.
attribute | description |
---|---|
label* i18n |
Link text |
seidseid |
seid of the related configuration parameter |
status_infostring |
Single Status Info type from the list available in Status Info Filter |
events_queryEvent Filter |
Event list filter to use to obtain the relevant data |
statistics_queryStatistics Filter |
Statistics filter to use to obtain the relevant data |
Example
Note: Car availability is purposely omitted.
{
"header": { "data": ".0" },
"body": [
{
"value": {
"data": ".1.0",
"filters": ["translate"]
}
},
{
"label": {
"content": "cars.price",
"filters": ["translate"]
},
"value": {
"data": ".1.1.0",
"filters": ["translate"]
}
},
{
"label": {
"content": "label.for_sale",
"filters": ["translate"]
}
}
],
"actions": [
{
"label": "action.buy",
"rpc_method": ".4",
"rpc_parameters": {
"param1": ".0",
"param2": ".1.0"
}
},
{
"label": "action.sell",
"rpc_method": ".5"
}
],
"links": [
{
"label": ".8..0",
"seid": ".8..1",
"status_info": ".8..2",
"events_query": {
"tstamp_until": ".8..3"
},
"statistics_query": {
"tstamp_from": ".8..4",
"types": ".8..5"
}
}
],
"severity": ".3"
}