⚪
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
  • Text-field
  • Info to Vuetify-Textfield API
  • Example
  • Native HTML <Input> Type
  • Example
  • File-Input:
  • Info to Vuetify File-Input
  • Textarea:
  • Info to Vuetify Textarea

Was this helpful?

  1. Input & Controls

Text-Field & Input

Text-field

  // Textfield - Text:  
  schema: { 
    ctrlShort: 'text',  // shorthand definition
    ctrl: { type:'text', ...} 
  }
  // Textfield - Password: 
  schema: { 
    ctrlShort: 'password',  // shorthand definition
    ctrl: { type:'password', ...} 
  }
  // Textfield - Email: 
  schema: { 
    ctrlShort: 'email',  // shorthand definition
    ctrl: { type:'email', ...} 
  }
  // Textfield - Number:
  schema: { 
    ctrlShort: 'number',  // shorthand definition
    ctrl: { type:'number', ...} 
  }  

Text Example

<v-text-field 
    label="Search"
    hint="Books" 
    prepend-icon="search"  
    clearable
/>
// Properties from <v-text-field> used in Schema
schema: { 
  myTextField: { 
    type:'text', 
    label:'Search', 
    hint:'Books', 
    prependIcon:'search', // camelcase -> 
    clearable:true 
  } 
}

Native HTML <Input> Type

mySchema:{    
  range:{ 
    type:'text', 
    ext:'range' // <----- EXT
  },
  color:{ 
    type:'text', 
    ext:'color',
    prependIcon: 'palette', 
    label:'Color'
  },    
  date:{ 
    type:'text', 
    ext:'date', 
    locale:'en',
    prependIcon: 'event', 
    label:'Date'
  },
  time:{ 
    type:'text', 
    ext:'time', 
    format:'24h',
    prependIcon: 'timer', 
    label:'Time'
  }
}

File-Input:

schema: { 
    ctrlShort: 'file',
    ctrl: { type:'file', ...}
}

Textarea:

schema: { 
    ctrlShort: 'textarea',
    ctrl: { type:'textarea', ...}
}
PreviousArraysNextCheckbox, Switch & Sliders

Last updated 4 years ago

Was this helpful?

Use different types for the HTML <input> element. Property ext in combination with type textmake the native accessable.

Info to Vuetify-Textfield API
Example
HTML<input>Type
Example
Info to Vuetify File-Input
Info to Vuetify Textarea