question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow custom add/remove button in SimpleFormIterator

See original GitHub issue

Is your feature request related to a problem? Please describe. Now buttons text taken from translate(), but in my case have to output different button text in different ArrayInput

I want to be able pass custom add/remove button component

Describe the solution you’d like Maybe can pass props to SimpleFormIterator like

<SimpleFormIterator addButton={<AddButton/>} removeButton={<RemoveButton/>}

What do you think about it?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
manishsundriyalcommented, May 15, 2020

@djhi Thanks for the quick response, I will do that.

0reactions
fzaninottocommented, Jul 28, 2020

Fixed by #4818

Read more comments on GitHub >

github_iconTop Results From Across the Web

SimpleFormIterator - React-admin
<SimpleFormIterator> lets users edit, add, remove and reorder sub-records. ... This prop lets you pass a custom element to replace the default Add...
Read more >
Only allow creation of new ArrayInput elements in edit/create ...
I either need to have a datagrid and be able to only create new templates, or have the existing entries in the ArrayInput...
Read more >
How to Create Draggable Rows in React Admin - Endertech
In a moment, I'll explain what's changed, but first—back in forms.js —import the custom iterator and use it to replace the <SimpleFormIterator>.
Read more >
React: Add/Remove Input Fields Dynamically on button click
My React Portfolio Course: https://chaoocharles.gumroad.com/l/react-portfolio-courseSource Code/Starter Files: ...
Read more >
React add delete button - Naturus Reisen
How to disable button in React with example Enable/disable the ... Use Bootstrap's custom button styles for actions in forms, dialogs, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found