rjsf-team/react-jsonschema-form

Pass the title to the AddButton for ObjectFieldTemplate

Open

#3,596 opened on Apr 11, 2023

View on GitHub
 (2 comments) (0 reactions) (1 assignee)TypeScript (2,136 forks)batch import
featurehelp wanted

Repository metrics

Stars
 (13,175 stars)
PR merge metrics
 (Avg merge 3d 17h) (32 merged PRs in 30d)

Description

Prerequisites

What theme are you using?

bootstrap-4

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

The add button for object fields will render the "+" sign only. When there are multiple objects in the form, it is better to have context by allowing the user to customize the AddButton and display the title with the "+" sign.

Describe the solution you'd like

The "title" should be passed as a property to the AddButton in ObjectFieldTemplate.

Without this, the user will have to customize the ObjectFieldTemplate in addition to the AddButton.

Describe alternatives you've considered

Customize the ObjectFieldTemplate in addition to the AddButton.

Contributor guide