Component description
The attributes component configures the display of data attributes. Attributes can be:
- Stored in their raw form and displayed as such
- Automatically transformed to a visual feature variation defined by attribute type features
Example
Minimal JSON
{
"type": "attributes",
"value": []
}{
"key": "attributes_description",
"template": {
"componentId": "template#attributes_description",
"type": "attributes",
"title": "",
"values": [
"description"
]
}
}Example taken from the core package.
Nested properties
| Property | Description | Type | Mandatory |
|---|---|---|---|
type | attributes | string | Yes |
value | Array of keys of displayed attribute types. | 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 |
settings | Setting configuring whether the attribute’s rich text editor opens in full-screen by default when the object page is opened. Example configuration:{ "type": "attributes", ..., "settings": { "fullscreenEditor": true } } }, The settings object also accepts valueVisibility. | json | 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 |
Value visibility
The valueVisibility setting hides single attributes from users outside the listed roles or groups. It is a map keyed by the attribute type key. Each entry has two optional properties:
| Property | Description | Values |
|---|---|---|
visibleToRoles | Roles that can see the value: ADMIN, CONTRIBUTOR, VIEWER, GUEST. The ROLE_ prefix and any letter case are also accepted. | array of strings |
visibleToGroups | Names of the user groups whose members can see the value (case-insensitive, surrounding spaces ignored). Never use group IDs. | array of strings |
- Roles and groups work as a union. Administrators always see every value.
- Each key is the resolved key of the value: the attribute type key as stored, with no
#orpkg#prefix (core#descriptionbecomescore_description). Matching ignores letter case. - A key that matches no value in the component, including one written in reference form such as
#core_account_id, is ignored. The worker logs a warning. - If every role in an entry is unknown, the value becomes visible to administrators only.
- Group membership is checked when the object page loads. A membership change applies on the user’s next page load.
Visibility is a view customization, not access control. It applies to the object page only (read view, inline edit, fullscreen editor, and panel description). Hidden values stay available through the API, API tables and bulk edit, search, Excel and Word export, and the create dialog.
Example:
{
"type": "attributes",
"values": ["description", "hr_band"],
"settings": {
"valueVisibility": {
"core_description": { "visibleToRoles": ["ADMIN", "CONTRIBUTOR"] },
"hr_band": { "visibleToGroups": ["HR"] }
}
}
}