danhunsaker / angular-dynamic-forms

Build Forms in AngularJS From Nothing But JSON (please see Alternatives in the README)
MIT License
379 stars 140 forks source link

Is there a way to control the field layout i.e. how are the fields laid out in the form? #21

Closed ngaheer closed 10 years ago

ngaheer commented 10 years ago

It would be great to provide an html template layout where the form fields go in. I am assuming they are currently laid out in a single column format with labels on left and fields on right.

danhunsaker commented 10 years ago

Layout is entirely controlled by the order your fields are defined, and CSS. Anything more complex would rely on knowing more about which fields are going to be in use, and at that point, it makes more sense to just use an HTML form partial. There is currently no plan to expand this module to support non-form fields, since at that point we would simply be creating a JSON representation of the DOM and converting it back and forth. While that could potentially be useful, it's a whole separate project.