Skip to content
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

Dynamic list within Iterate #4417

Open
andlbrei opened this issue Dec 18, 2024 · 0 comments
Open

Dynamic list within Iterate #4417

andlbrei opened this issue Dec 18, 2024 · 0 comments

Comments

@andlbrei
Copy link
Contributor

🚀 Feature Proposal

A dynamic list, where user can add and remove objects easily (like Iterate.Array) which works inside of the Iterate context, both in Iterate.Array and Iterate.PushContainer.

Motivation

Iterate.Array works well for both "large" objects, with the possibility of making custom view and edit containers, as well as with simple single value lists.
It is however not possible to use Iterate within Iterate.
It would be great to be able to make a list of some data while in the context of an object already in Iterate.

Example

We have a design where we are adding people to a list.
These people can have one or more citizenships.
Currently there is no easy way of handling this use case. Iterate.Array works great for making simple dynamic lists with PushButton, but it does not work within Iterate

bilde

Pitch

It seems to me to be a natural progression of Iterate.

CSB

Here is a CSB which shows how usage of this could look.
Note that this is (obviously) not working right now. The code might be of interest, not the result of running the code.

https://codesandbox.io/p/sandbox/show-iterate-within-iterate-wq9snc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant