rjsf-team/react-jsonschema-form

Pass the title to the AddButton for ObjectFieldTemplate

Open

#3596 aperta il 11 apr 2023

Vedi su GitHub
 (2 commenti) (0 reazioni) (1 assegnatario)TypeScript (2136 fork)batch import
featurehelp wanted

Metriche repository

Star
 (13.175 star)
Metriche merge PR
 (Merge medio 3g 17h) (32 PR mergiate in 30 g)

Descrizione

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.

Guida contributor