Set the placeholder in Vue Datepicker component

28 Feb 20231 minute to read

The following example demonstrates how to set placholder in the DatePicker component.

Using placeholder you can display a short hint in the input element.

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

export default {
  @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;