Skip to content

uiSchema (ui:widget) for nested schema values  #208

@michaelryancaputo

Description

@michaelryancaputo

Prerequisites

Description

Can't seem to select fields in nested values to be used with ui:widget

Schema:

 faq: { type: 'array', title: 'Faq', items: { type: 'object', required: ['question', 'answer'], properties: { question: { type: 'string', title: 'Question', placeholder: 'Why is the sky blue...' }, answer: { type: 'string', title: 'Answer', placeholder: 'Because I said so...' } } } }, 

uiSchema (have tried each)

 question: {'ui:widget': 'customTextInput'}, answer: {'ui:widget': 'customTextInput'} 

and

 faq: { question: {'ui:widget': 'customTextInput'}, answer: {'ui:widget': 'customTextInput'} }, 

and

 faq: [ question: {'ui:widget': 'customTextInput'}, answer: {'ui:widget': 'customTextInput'} ], 

Steps to Reproduce

  1. Create a form using the schema above,
  2. use the uiSchema values as stated above

Expected behavior

I would expect to be able to apply my ui:widget to nested schema fields.

Actual behavior

The field retained the basic styling that I am not using.

Version

0.30.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions