# elementLabelProp - compose propertyName from 2+ properties

**URL:** <https://jsonforms.discourse.group/t/elementlabelprop-compose-propertyname-from-2-properties/1496>\
**Category:** General\
**Created:** [May 17, 2023, 8:08am UTC](https://jsonforms.discourse.group/t/elementlabelprop-compose-propertyname-from-2-properties/1496 "2023-05-17T08:08:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anotherUser](https://avatars.discourse-cdn.com/v4/letter/a/7bcc69/32.png) [@anotherUser](https://jsonforms.discourse.group/u/anotherUser)\
**Post date:** [May 17, 2023, 8:08am UTC](https://jsonforms.discourse.group/t/elementlabelprop-compose-propertyname-from-2-properties/1496/1 "2023-05-17T08:08:19Z")

</div>

Hi,  
the documentation states that instead of a single property string also an array containing more then one property string could be used.

However, I cannot find an example showing this possibility.

e.g. if I have property “name” and “position” in the json schema as items in an array, how would the assignment look like?

In the UI schema I tried without any effect:  
`"elementLabelProp": ["position", "name"]`

referencing only one property in an array works well, like  
`"elementLabelProp": ["position"]`

Any suggestions?

---

<div class="post-metadata">

**Author:** ![sdirix](https://yyz2.discourse-cdn.com/free1/user_avatar/jsonforms.discourse.group/sdirix/32/1073_2.png) [@sdirix](https://jsonforms.discourse.group/u/sdirix)\
**Post date:** [May 19, 2023, 6:58am UTC](https://jsonforms.discourse.group/t/elementlabelprop-compose-propertyname-from-2-properties/1496/2 "2023-05-19T06:58:44Z")

</div>

Hi @anotherUser,

The “array” variant of the `elementLabelProp` is used for specifying a path to the property. So `["position", "name"]` will try to resolve `position.name` of the object.

Our off the shelf renderers can only show one property of an element in the title. If you like more control then you can use a custom renderer in which you can render arbitrary UI including as many properties as you need.

---

<div class="post-metadata">

**Author:** ![anotherUser](https://avatars.discourse-cdn.com/v4/letter/a/7bcc69/32.png) [@anotherUser](https://jsonforms.discourse.group/u/anotherUser)\
**Post date:** [May 23, 2023, 5:21am UTC](https://jsonforms.discourse.group/t/elementlabelprop-compose-propertyname-from-2-properties/1496/3 "2023-05-23T05:21:24Z")

</div>

Thank you @sdirix for clearing this up! 🙂
