-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Controltype repeater field #14375
Comments
Have you checked out the new JSON editor in 6.2: #12824 (comment) There's also this existing feature request that is related: #14266 |
I think a repeater is more viable given the new feature in 6.2. The table feature won't fit nicely in the existing UI on smaller screens and detaches the object structure (i.e. array of objects) from the documentation, where devs need it the most. I think the existing UI supports both devs and non-devs with its flexibility and simplicity. However, this issue is a fairly significant one for more complex components that take arrays of objects. The current editor requires adding an empty object first before adding any properties. Most components will require each object in the array to already conform to any schema laid out by the proptype declarations, which is exactly what ReactDOM does when checking those inputs in development, subsequently throwing any errors on malformed input. Granted, not everyone uses Being able to duplicate an existing item might take some doing, especially if the items themselves have nested arrays of objects. Though, an exact copy should be possible simply by At the very least, a user should be able to click the "add item to array" button and be able to pass an object with keys/values, which it cannot do now. If it can, I have yet to figure out how to do it as the result is always just a string with my object specification. A simple In any case, neither the current implementation of the tree editor, nor #14266 really address the OP's feature request in this issue, imho. 😋 |
I would really make a lot of use out of such a feature. |
Hi,
It would be nice if the controls would enhance a controll called: "repeater field"
This would be nice for reactive add or remove items in a array (or even object).
This would be handy for showing a menu list:
would look something like this:
This gives you a nice UI to add or remove a array or string, very UI friendly.
The text was updated successfully, but these errors were encountered: