Skip to content

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
severity
cdid
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_inactive
cdid
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
label
Text Node
Field label
value
Text Node
Field value

Text Node

Either data or content attribute must be present.

attribute description
data
cdid
Pointer to data to be displayed within the given record - if the target data is null then this Text Node must be ignored
content
string
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.

Exactly one of the attributes seid, status_info and query must be present.

attribute description
label*
i18n
Link text
seid
seid
seid of the related configuration parameter
status_info
string
Single Status Info type from the list available in Status Info Filter
events_query
Event Filter
Event list filter to use to obtain the relevant data
statistics_query
Statistics 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"
}