kitlangton / formula

Form Combinator Library for decimating frontend boilerplate.
https://formula.surge.sh
Apache License 2.0
37 stars 17 forks source link

Support for List[A] #4

Open ghstrider opened 2 years ago

ghstrider commented 2 years ago

This is a feature request. Some forms have options to add/subtract List of items. For example:- List[Pet]

The implementation will be whenever List[A] is encountered:

I am very much inclined to develop it, if this request makes sense to you. Thanks

randm-ch commented 1 year ago

List[A] is supported with implicit def listForm[A](implicit form: Form[A]): Form[List[A]] = Form.Many(form), though you will get a Count field which in turn displays the requested count of input fields, instead of showing +/- buttons.