eclipsesource / eclipsesource/jsonforms

childLabelProp vs elementLabelProp

Open
#1,917 0 comments 0 reactions 0 assignees View on GitHub
react vue
Dominant language
TypeScript
Stars
2.7k
Forks
424
Avg merge
17d 8h
Merged PRs (30d)
1

Description

### Describe the bug

Within the code base we use both, `elementLabelProp` and `childLabelProp` as the UI Schema option to define a label for array elements.

### Expected behavior

This is not intended and should be aligned. For a backward compatible solution we should probably support both options, with `elementLabelProp` taking higher precedence as it's the intended option.

### Steps to reproduce the issue

Try to use `elementLabelProp` and/or `childLabelProp` with the React Material and the Vue renderer sets.

### Screenshots

_No response_

### In which browser are you experiencing the issue?

N/A

### Framework

React, Vue 3, Vue 2

### RendererSet

Material, Vanilla

### Additional context

See:
- https://github.com/eclipsesource/jsonforms-vuetify-renderers/issues/45
- https://jsonforms.discourse.group/t/labels-for-array-of-strings/707/4

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.