jsonforms icon indicating copy to clipboard operation
jsonforms copied to clipboard

Suport label for multi select field

Open luiz290788 opened this issue 2 years ago • 3 comments

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

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

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

luiz290788 avatar Feb 14 '23 15:02 luiz290788

Makes sense to me! Would you like to contribute this feature?

sdirix avatar Feb 20 '23 14:02 sdirix

Makes sense to me! Would you like to contribute this feature?

I can, but not in the short term. Do you want to assign the issue to me?

luiz290788 avatar Feb 21 '23 12:02 luiz290788

Hi @luiz290788, do you still plan to contribute this feature?

sdirix avatar Apr 20 '23 15:04 sdirix