# Grouping Controls

## Group

### Group Controls using Model-Structure

```javascript
  // Grouping
  model:{
    group1:{ 
      a: 'A', 
      b: 'B', 
      c: 'C' 
    },
    group2:{ 
      a: 'A', 
      b: 'B', 
      c: 'C' 
    }
  }
	schema: { 
    group1: { 
      type:'group',
      schema: { 
        a:'text', 
        b:'text', 
        c:'text' 
      }
    }, 
    group2: { 
      type:'group',
      schema: { 
        a:'text', 
        b:'text', 
        c:'text' 
      }
    }, 
	}
```

### [Example](https://wotamann.github.io/grouping)

## Wrap

### Wrap Controls **allows grouping independent from Model-Structure**

```javascript
// Wrapping
model: {
  name1:'Taleb', 
  checkbox1:true, 
         
  name2:'Musk', 
  checkbox2:false, 
},           
schema: {
  // show wrapped group of names  
  names: { 
    type:'wrap', 
    label:'Names',
    col:6,  
    schema:{
      name1,    
      name2,    
    }
  },
  // show wrapped group of checkboxes
  checkboxes: { 
    type:'wrap', 
    label:'Checkboxes', 
    col:6, 
    class:'title pa-2 elevation-4 green lighten-5', 
    schema:{
      checkbox1,          
      checkbox2
    }
  }
}         
```

### [Example ](https://wotamann.github.io/wrapping)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wotamann.gitbook.io/vuetify-form-base/schema-1/grouping-controls.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
