Set the placeholder in Vue Datetimepicker component

28 Feb 20231 minute to read

The following example demonstrates how to set placeholder in the DateTimePicker control.

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

    <div id="app">
      <div class='wrapper'>
        <ejs-datetimepicker  :placeholder="waterMark" ></ejs-datetimepicker>
import Vue from 'vue';
import { DateTimePickerPlugin } from '@syncfusion/ej2-vue-calendars';

export default {
   data () {
        return {
           waterMark: "Select a date and time"
@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-lists/styles/material.css';
@import "../node_modules/@syncfusion/ej2-vue-calendars/styles/material.css";
   .wrapper {
    max-width: 250px;
    margin: 0 auto;