All Components

TimePicker Overview

The TimePicker represents a time-list where the user can enter or pick time values.

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

Basic Usage

The following example demonstrates the TimePicker in action.

<div id="vueapp" class="vue-app">

<h5>Selected time: {{date}}</h5>
<kendo-timepicker v-model="date"></kendo-timepicker>
<p>(use Alt+↓ to open the time list, Tab to move to the next time section in the popup, ↑ to increment and ↓ to decrement the value)</p>

</div>
Vue.use(DateinputsInstaller);
new Vue({
    el: '#vueapp',
    data: {
        date: null
    }
})

Features and Functionalities

The TimePicker enables you to set date ranges and formats.

<div id="vueapp" class="vue-app">
    <kendo-timepicker :min="minDate"
                      :max="maxDate"
                      :value="currentDate"
                      :interval="15"
                      :time="'(hh:mm))'">
    </kendo-timepicker>
</div>
Vue.use(DateinputsInstaller);
new Vue({
    el: '#vueapp',
    data: {
        minDate: new Date(2017, 9, 15, 2, 30),
        maxDate: new Date(2017, 9, 15, 16, 30),
        currentDate: new Date(2017, 9, 15, 10, 30)
    }
})

Events

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

<div id="vueapp" class="vue-app">
    <kendo-timepicker v-on:open="onOpen" v-on:close="onClose"></kendo-timepicker>
</div>
Vue.use(DateinputsInstaller);

new Vue({
    el: '#vueapp',
    methods: {
        onOpen: function (e) {
            console.log("TimePicker is opened");
        },
        onClose: function (e) {
            console.log("TimePicker is closed");
        }
    }
})
In this article