vue-form-json-schema
  • Introduction
  • Installation
  • Getting started
  • API
    • vue-form-json-schema
      • components
      • options
        • ajv
      • schema
      • uiSchema
        • field
          • component
          • children
          • displayOptions
          • dynamicOptions
          • errorHandler
          • errorOptions
          • eventProp
          • fieldOptions
            • attrs
            • class
            • domProps
            • key
            • nativeOn
            • on
            • props
            • slot
            • style
          • internalModel
          • valueModel
          • valueProp
Powered by GitBook
On this page
  1. API
  2. vue-form-json-schema
  3. uiSchema
  4. field

errorOptions

PreviouserrorHandlerNexteventProp

Last updated 4 years ago

Same API as but is only applied when the field has errors and has been modified.

Example

data() {
  return {
    uiSchema: [{
      component: 'input',
      model: 'input1',
      errorOptions: {
        class: ['is-invalid']
      },
      fieldOptions: {
        class: ['form-control'],
        on: ['input']
      }
    }]
  }
}
fieldOptions