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
| Property | Description | Values | Mandatory |
|---|---|---|---|
type | codetable-label-user | string | Yes |
values | Array of values defining what user relation types the component establishes between the selected user(s) and the object. | array | Yes |
componentId | Unique 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). | string | No |
title | Translation 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. | string | No |
Nested properties in values
| Property | Description | Values | Mandatory |
|---|---|---|---|
userRelationTypeKey | Key of the assigned user relation type. | string | Yes |
title | Translation 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. | string | No |