Property description
The attributes property shows additional information about objects in a diagram.
Minimal JSON
{
"type":"",
"value":""
}{
"key": "relations_table_generated_generic",
"template": {
"componentId": "template#relations_table_generated_generic",
"type": "relations",
"attributes": [
{
"type": "definedKey",
"value": "relationTypeName"
},
{
"type": "definedKey",
"value": "toObjectName"
}
]
}
}Example taken from the core package.
Nested properties
| Property | Description | Values | Mandatory |
|---|---|---|---|
type | Types of attributes that are displayed. Supported values are: attributeTypeKey, definedKey | string in (attributeTypeKey, definedKey) | 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 |
value | Keys of attribute types. | string | Yes |
clearNewLine | Paragraphs in text are preserved. isHtml must be enabled as paragraph lines are saved as `. | boolean | No |
isHtml | Determines whether HTML formatting is supported. | boolean | No |
isSourceAttribute | Determines whether the attribute value is from the source object. | boolean | No |
maxLength | Max length of displayed attribute value. | number | No |
Supported type values
attributeTypeKey
Attributes created in a package and assigned to an object type.
definedKey
Defined keys are predefined attributes such as last object edit, object name etc. Column widths adjust dynamically to fit the content, with longer values displaying up to a defined maximum. Supported values are:
dataDictionaryColumndataDictionaryModeldataDictionaryObjectfromObjectNamefromObjectPathNamefromObjectTypeNamefromSpaceNamerelationNamerelationTextValuerelationTypeNamesourceTypeNametoApplicationNametoGrandParentObjectNametoObjectNametoObjectPathNametoObjectTypeNametoParentObjectNametoSpaceName