⚪
Vuetify-Form-Base
  • Introduction
  • News & Changes
  • Quickstart
    • Start with
    • Installation
    • Intro
    • Features
    • License
  • Form
    • Validation
  • Component
    • Async Loading
    • Attributes
    • From Schema to Component
    • Events
    • Grid
    • Slots
    • CSS
    • Custom Components
    • Tooltips
  • Schema
    • General
    • Autogeneration
    • Computed Schema
    • Display & Typography
    • Grouping Controls
    • Arrays
  • Input & Controls
    • Text-Field & Input
    • Checkbox, Switch & Sliders
    • Radio Buttons
    • Buttons
    • Select, Combo & Autocomplete
    • Lists & Treeviews
    • Date, Time & Color
    • Icons & Images
Powered by GitBook
On this page
  • Group
  • Group Controls using Model-Structure
  • Example
  • Wrap
  • Wrap Controls allows grouping independent from Model-Structure
  • Example

Was this helpful?

  1. Schema

Grouping Controls

Group

Group Controls using Model-Structure

  // 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' 
      }
    }, 
	}

Wrap

Wrap Controls allows grouping independent from Model-Structure

// 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
    }
  }
}         
PreviousDisplay & TypographyNextArrays

Last updated 4 years ago

Was this helpful?

Example
Example