Skip to content
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

Multi Column Form #66

Open
abku opened this issue Jan 27, 2016 · 3 comments
Open

Multi Column Form #66

abku opened this issue Jan 27, 2016 · 3 comments

Comments

@abku
Copy link

abku commented Jan 27, 2016

Is there anyway/easy way of converting this to a multi column form?
Currently I have a long page of fields and instead would like the form to spread over the width of the page in columns format?

@danhunsaker
Copy link
Owner

That's a layout concern, which means you'll want to adjust your stylesheets accordingly. This library (and, indeed, Angular itself) only handles the HTML; you're responsible for your own CSS.

The simplest adjustment is likely something similar to label { display: inline-block; }, but that's probably overly simplified for what you're looking for.

@abku
Copy link
Author

abku commented Mar 12, 2016

@danhunsaker

Yes. :) That is a bit over simplified. I am looking for a nested structure. Here is a sample:

        <fieldset>
                <legend>Residential address</legend>
                <div data-row-span="2">
                    <div data-field-span="1">
                        <label>Flat no. and bldg. name</label>
                        <input type="text">
                    </div>
                    <div data-field-span="1">
                        <label>Road no./name</label>
                        <input type="text">
                    </div>
                </div>
                <div data-row-span="4">
                    <div data-field-span="3">
                        <label>Area and landmark</label>
                        <input type="text">
                    </div>
                    <div data-field-span="1">
                        <label>City</label>
                        <input type="text">
                    </div>
                </div>
                <div data-row-span="4">
                    <div data-field-span="1">
                        <label>Telephone Residence</label>
                        <input type="text">
                    </div>
                    <div data-field-span="1">
                        <label>Office</label>
                        <input type="text">
                    </div>
                    <div data-field-span="1">
                        <label>Fax</label>
                        <input type="text">
                    </div>
                    <div data-field-span="1">
                        <label>Pin code</label>
                        <input type="text">
                    </div>
                </div>
            </fieldset>

Is this even possible?

@danhunsaker
Copy link
Owner

HTML templates aren't supported, no, though that feature is on the roadmap. For now you may wish to investigate one of the alternative projects listed in the README... :-\

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants