Closed dmolineus closed 9 years ago
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.