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

Row gutters in grouped controls #53

Closed
mcasto opened this issue Aug 20, 2020 · 2 comments
Closed

Row gutters in grouped controls #53

mcasto opened this issue Aug 20, 2020 · 2 comments

Comments

@mcasto
Copy link

mcasto commented Aug 20, 2020

I have a schema with this setup:

    stats: {
      type: "group",
      label: "Stats",
      col: 6,
      class: "bordered overline pa-2",
      schema: {
        str: {
          type: "number",
          label: "STR",
          col: 2,
        },
        dex: {
          type: "number",
          label: "DEX",
          col: 2,
        },
        con: {
          type: "number",
          label: "CON",
          col: 2,
        },
        int: {
          type: "number",
          label: "INT",
          col: 2,
        },
        wis: {
          type: "number",
          label: "WIS",
          col: 2,
        },
        cha: {
          type: "number",
          label: "CHA",
          col: 2,
        },
      },
    },

It works fine, but I'd like to put some gutters between the fields. I did that globally on the rest of the form with: :row="{ justify: 'center', align: 'center', noGutters: false }" and it works like a charm, but that global setting doesn't carry through into the grouped items.

Am I overlooking something?

@wotamann
Copy link
Owner

wotamann commented Aug 23, 2020

Thanks for your comments!

schema type 'group' and 'array' calls v-form-base.vue recursively. Now the props class, col and row are passed correctly.

This should work with 0.2.5 - see example 'Group Controls'

group1: { type: 'group', col:6, row:{ noGutters: false }, class:'elevation-4 pa-2', schema: { A: 'text', B: 'text' } }

@mcasto
Copy link
Author

mcasto commented Aug 24, 2020

For the record, in case I haven't already mentioned it, I love this component. Major kudos.

@mcasto mcasto closed this as completed Sep 13, 2020
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