All Components

DatePicker Overview

The DatePicker combines the Kendo UI DateInput and Calendar components.

It enables the user to enter or pick a date value.

The DatePicker wrapper for Vue is a client-side wrapper for the Kendo UI DatePicker widget.

Basic Usage

The following example demonstrates the DatePicker in action.

<div id="vueapp" class="vue-app">
    <h5>Select date: </h5>
    <kendo-datepicker :min="minDate"
                      :max="maxDate"
                      :value="currentDate"
                      :format="'yyyy/MMMM/dd'"></kendo-datepicker>
</div>
Vue.use(DateinputsInstaller);
new Vue({
    el: '#vueapp',
    data: {
        minDate: new Date(2017, 9, 1),
        maxDate: new Date(2018, 10, 30),
        currentDate: new Date(2018, 8, 10)
    }
})

Functionality and Features

Events

The following example demonstrates basic DatePicker events. You can subscribe to all DatePicker events by the handler name.

<div id="vueapp" class="vue-app">
    <kendo-datepicker v-on:open="onOpen" v-on:close="onClose"></kendo-datepicker>
</div>
Vue.use(DateinputsInstaller);
new Vue({
    el: '#vueapp',
    methods: {
        onOpen: function (e) {
            console.log("DatePicker is opened");
        },
        onClose: function (e) {
            console.log("DatePicker is closed");
        }
    }
})
In this article