Disabled the datepicker component in Vue Datepicker component

28 Feb 20231 minute to read

To disable the DatePicker, use its enable property.

The following example demonstrates the DatePicker in a disabled state.

  <div id="app">
        <div class='wrap'>
           <ejs-datepicker id='date' :enabled="enable"></ejs-datepicker>
import Vue from "vue";
import { DatePickerPlugin } from "@syncfusion/ej2-vue-calendars";

export default {
    data () {
            enable: false
  @import '../node_modules/@syncfusion/ej2-base/styles/material.css';
  @import '../node_modules/@syncfusion/ej2-buttons/styles/material.css';
  @import '../node_modules/@syncfusion/ej2-inputs/styles/material.css';
  @import '../node_modules/@syncfusion/ej2-popups/styles/material.css';
  @import "../node_modules/@syncfusion/ej2-vue-calendars/styles/material.css";
 .wrap {
    margin: 35px auto;
    width: 240px;