0

Basically Vuejs vue-form-generator generates form layout as single column view having single field per row.

<vue-form-generator :schema="schema" :model="model" :options="formOptions"></vue-form-generator>

Here is the sample jsfiddle for example: https://jsfiddle.net/icebob/0mg1v81e/174/

How do we generate multi column view having multiple fields per row using vue-form-generator?

1 Answer 1

1

So, you can add a bootstrap class in object of fields styleClasses:'col-md-6'

fields: [{
            type: "text",
            label: "ID",
            model: "id",
            readonly: true,
            featured: false,
            disabled: true,
            styleClasses:'col-md-6'
        }]
Sign up to request clarification or add additional context in comments.

2 Comments

I have already tried styleClasses: 'col-md-6' but no success any other thought?
@user2423706 you can add your custom class, see an example jsfiddle.net/76of8ucs

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.