vue-form-json-schema

Props

Property
Value
Description
tag
Render the vue-form-json-schema element with this tag name
model
Object
The form values
options
Object
See Options
schema
Object
A valid JSON Schema (validated by Ajv)
ui-schema
Object
See uiSchema
components
Object
See components

Events

Event
Description
change
When the model is updated this function will be called with the new value as the first parameter
state-change
When the internal state is updated this function will be called with the new value as the first parameter. The state is an Object which contains information such as validation errors.
validated
When a validation has been performed this function will be called a Boolean as the first parameter describing the overall form valid state
<template>
<vue-form-json-schema
tag="div"
v-model="model"
:options="options"
:schema="schema"
:ui-schema="uiSchema"
:components="components"
v-on:change="onModelUpdate"
v-on:state-change="onStateUpdate"
v-on:validated="onValidatedUpdate"
/>
</template>
Last modified 2yr ago
Copy link