Component description

The codetable-label-user component creates a user object relation (relation between the object and a user). For example, it allows the assignment of owners and stewards to objects.

Example

Minimal JSON

{
  "type": "codetable-label-user",
  "values": [
    {
      "title": "",
      "userRelationTypeKey": ""
    }
  ]
}
{
  "type": "codetable-label-user",
  "values": [
    {
      "userRelationTypeKey": "recipe_owner",
      "title": "title.recipeOwner"
    },
    {
      "userRelationTypeKey": "best_cook",
      "title": "title.bestCook"
    }
  ]
}

Example taken from the Writing an Application Package tutorial.

Nested properties

PropertyDescriptionValuesMandatory
typecodetable-label-userstringYes
valuesArray of values defining what user relation types the component establishes between the selected user(s) and the object.arrayYes
componentIdUnique ID of a component. If left empty, a random string will be generated. Primarily used in patch packages to define the component's position within the layout (template).stringNo
titleTranslation key of the title. Define the key in translations to specify how the text is displayed in the UI. Unlike the name property, if you use a specific string of text for the title, this text will appear with the package key. For example, Comment Section will be displayed as package_key_comment section.stringNo

Nested properties in values

PropertyDescriptionValuesMandatory
userRelationTypeKeyKey of the assigned user relation type.stringYes
titleTranslation key of the title. Define the key in translations to specify how the text is displayed in the UI. Unlike the name property, if you use a specific string of text for the title, this text will appear with the package key. For example, Comment Section will be displayed as package_key_comment section.stringNo