formly-js / angular-formly-templates-bootstrap

Angular-Formly: Bootstrap Templates
http://formly-js.github.io/angular-formly
MIT License
110 stars 81 forks source link

can I make an inline form with this? #22

Open yahyaKacem opened 9 years ago

yahyaKacem commented 9 years ago

Hi, I really like this lib thanks, but can I make an inline form with it if so how I couldn't find anything about it in the docs, or should I use custom templates for this. thanks in advance.

kentcdodds commented 9 years ago

You can. I'll try to make an example when I have time later.

(Sent from my mobile device, please forgive typos or brevity) On May 10, 2015 7:37 AM, "Yahya Kacem" notifications@github.com wrote:

Hi, I really like this lib thanks, but can I make an inline form http://getbootstrap.com/css/#forms-inline with it if so how I couldn't find anything about it in the docs, or should I use custom templates for this. thanks in advance.

— Reply to this email directly or view it on GitHub https://github.com/formly-js/angular-formly-templates-bootstrap/issues/22 .

cdbizone commented 9 years ago

+1

joepegler commented 9 years ago

+1

icfantv commented 9 years ago

@yahyaKacem @cdbizone @joepegler: Take a gander at this example. Note how the user can switch from a horizontal to vertical form simply by specifying the form state class values.

Additionally, and similarly here, the only thing that controls the way your form fields/labels are laid out is the class on the form element and not the individual form-control blocks and the form element usually lives outside your template. And even if it didn't you can easily add configuration as per the above example..

Thus, I would argue that there is nothing that actually needs to be done w/r/t the library.