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
Add an empty row to the collection #34
Comments
|
What is the purpose of empty field set you are looking for ? |
|
Let me explain it with the used contact form example in the Aura docs. I want to provide a form where multiple entries of the collection can be added. The number of items should not be limited. I would like to render an empty fieldset in this cases:
I want to use a generic form renderer where I can not know which fieldset is used in the collection. So I need a way getting the fieldset. |
|
ping @pmjones |
|
could you please send a PR, so @pmjones can check the idea? ( preferable with test case ) or you can wait to hear his thoughts. |
|
one thing for now, extend the class ;) . |
|
the collection class should not contain rendering concerns. empty fieldsets can be triggered via javascript. |
I really like the idea of collections and fieldsets in Aura, but I struggle at some points. Here is another one.
At the moment an collection can only be rendered if any data is filled in (by a model, by post etc.). It would be great add an empty fieldset row or at least to get the fieldset so I could create empty rows in the View of the collection.
The text was updated successfully, but these errors were encountered: