Giter Club home page Giter Club logo

Comments (5)

wotamann avatar wotamann commented on July 21, 2024

Thank you for using v-form-base!

The intention by vuetify-formbase was to create a schema based on the model structure.

If the model structure contains a grouping property like 'person' or 'adress' in the following example, then grouping is possible

model: {
  person:{ 
    name:'Harari', 
    age:40 
  },  
  adress:{
    street:'5th Avenue',
    city:'NY'
  } 
}
schema: {
  person:{ 
    type:'group', 
    label:'Person', 
    schema: {
      name: { type: 'text' },    
      age: { type: 'number' }
    } 
  },  
  adress:{
    type:'group', 
    label:'Adress', 
    schema: {
      street:{ type: 'text' },
      city:{ type: 'text' }
  } 
}

However, it is not intended that an external grouping layer can be inserted. If this is desired, you must map the model data accordingly from

model: {
    name:'Harari', 
    age:40 
    street:'5th Avenue',
    city:'NY'
}

to

model: {
  person:{ 
    name:'Harari', 
    age:40 
  },  
  adress:{
    street:'5th Avenue',
    city:'NY'
  } 
}

from vuetify-form-base.

wotamann avatar wotamann commented on July 21, 2024

Now you can group any model independent of any structure with type 'wrap'. Use type 'group' for grouping based on model structure

Example
Group independent from Model-Structure with Type 'wrap'

from vuetify-form-base.

Exalyn avatar Exalyn commented on July 21, 2024

That's a good news, thanks !
However your link does not work ;)

from vuetify-form-base.

wotamann avatar wotamann commented on July 21, 2024

This is the correct Link

from vuetify-form-base.

antoniolucasnobar avatar antoniolucasnobar commented on July 21, 2024

above link is broken (404). I found this link in the docs. Unfortunately, the examples are not working (like the link from previous post).

from vuetify-form-base.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.