rjsf-team/react-jsonschema-form

ButtonTemplates: differentiate between array and object AddButton

Open

#3.175 geöffnet am 4. Okt. 2022

Auf GitHub ansehen
 (2 Kommentare) (0 Reaktionen) (1 zugewiesene Person)TypeScript (2.136 Forks)batch import
featurehelp wanted

Repository-Metriken

Stars
 (13.175 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 3T 17h) (32 gemergte PRs in 30 T)

Beschreibung

Prerequisites

What theme are you using?

core

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

v5 adds ButtonTemplates.AddButton, but in my case we want to use different icons between adding items to an array vs adding additionalProperties to an object

Describe the solution you'd like

  • Different button templates for the add to array and add to object
  • OK to have one fall back to the other if needed to avoid a breaking change or to keep the interface simple

Describe alternatives you've considered

No response

Contributor Guide