Vue Form - Form Properties

To change the Form configuration at runtime, bind the property that should be changed to a component property:

App.vue
  • <template>
  • <div>
  • <DxForm
  • :form-data="employee"
  • :disabled="isFormDisabled" />
  • <DxCheckBox
  • text="Disable the Form"
  • v-model:value="isFormDisabled" />
  • </div>
  • </template>
  • <script>
  • import 'devextreme/dist/css/dx.light.css';
  •  
  • import { DxForm } from 'devextreme-vue/form';
  • import { DxCheckBox } from 'devextreme-vue/check-box';
  •  
  • const employee = {
  • firstName: 'John',
  • lastName: 'Heart',
  • phone: '+1(213) 555-9392',
  • email: 'jheart@dx-email.com'
  • };
  •  
  • export default {
  • components: {
  • DxForm, DxCheckBox
  • },
  • data() {
  • return {
  • employee,
  • isFormDisabled: false
  • };
  • },
  • };
  • </script>
See Also