-
-
Notifications
You must be signed in to change notification settings - Fork 17
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
Support list components #2
Comments
That's a great idea. Definitely a bit more complex than the current components, but it should be possible. |
Probably the best way to solve this would be to figure out how to implement Here's a simple sketch of what the user interface might look like that would be compatible with what @paf31 wants: if you have two controls, So if you combine that with Haskell's definition for |
@Gabriel439 Thank you! That sounds like a really interesting approach. Here is what I found out so far:
If I understand you (and the implementation of pure []
<|> sequence [int_ 0]
<|> sequence [int_ 0, int_ 0]
<|> sequence [int_ 0, int_ 0, int_ 0] Running this UI actually works (if I add some parentheses to make
|
Hmmm. You're right. I didn't think that through. It seems like if there were some sort of I'll have to think about this some more and experiment with this in |
This was something I wanted also, so I took a stab at it. I didn't use Alternative or anything, just recursively nested UIs that match the List structure. It works nicely, but the code might could use a review. PR incoming... |
Closed via #26 |
I don't know if this is possible but something like
might be nice. It could be rendered as a list of items, each with its own Remove button, and an Add button at the top.
The text was updated successfully, but these errors were encountered: