rjsf-team/react-jsonschema-form

ButtonTemplates: differentiate between array and object AddButton

Open

#3,175 建立於 2022年10月4日

在 GitHub 查看
 (2 留言) (0 反應) (1 負責人)TypeScript (13,175 star) (2,136 fork)batch import
featurehelp wanted

描述

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

貢獻者指南