eclipsesource / eclipsesource/jsonforms

Suport label for multi select field

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

Description

### Is your feature request related to a problem? Please describe.

The multi select fields does not display the title of the field as label.

```js
oneOfMultiEnum: {
type: 'array',
uniqueItems: true,
title: 'select all that apply'
items: {
oneOf: [
{ const: 'foo', title: 'My Foo' },
{ const: 'bar', title: 'My Bar' },
{ const: 'foobar', title: 'My FooBar' }
]
}
}
```

The label "select all that apply" is not displayed in the form. Even if I enforce the label in the ui schema it does not work.

I was able to achieve that if I wrap my control in a group, but that gives more emphasis in the group title than I wish it would. I want the label to be in the same format as the other labels are.

### Describe the solution you'd like

Display the title as label as it would for the other fields automatically without any extra configuration.

### Describe alternatives you've considered

I'm fine with it being a opt-in feature.

### Framework

React

### RendererSet

Material

### Additional context

_No response_

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.