Property description

The codetableValues asset creates an attribute with a preset list of values.

Tip

This asset is different from codetable labels components, which allow object types to be selected as labels.

Minimal JSON

{
  "key": "",
  "data": []
}
{
  "key": "codetableValues_example",
  "data": [
    {
      "label": "Yes",
      "value": "value_yes"
    },
    {
      "label": "No",
      "value": "value_no"
    }
  ]
}

Example JSON

Nested properties

PropertyDescriptionValuesMandatory
keyUnique key of the asset. Used for referencing in the same package or other packages using packageKey#assetKey.stringYes
dataArray of available values. Each value consists of: label: Default EN translation., value: Stored value.arrayYes