Kendo UI for Vue Date Inputs Overview
The Kendo UI for Vue Date Inputs enable the user to pick up dates for scheduling appointments.
The Date Inputs components are part of the Kendo UI for Vue library which provides native Kendo UI components for the Vue ecosystem and are available under the kendo-vue-dateinputs NPM package.
Basic Usage
The following example demonstrates the Calendar, DateInput and DatePicker components in action.
Installation
To initialize the Date Inputs, either:
Using CDN
You need to reference the dateinput and intl package, in order to be able to use the Kendo Native Date Inputs for Vue with CDN.
<script src="https://unpkg.com/@progress/kendo-vue-intl@latest/dist/cdn/js/kendo-vue-intl.js"></script>
<script src="https://unpkg.com/@progress/kendo-vue-dateinputs@latest/dist/cdn/js/kendo-vue-dateinputs.js"></script>
Initializing with Webpack
Download and install the package. Use Node.js v5.0.0 or later.
npm install --save @progress/kendo-vue-dateinputs @progress/kendo-vue-intl
Once installed, import the package module.
// ES2015 module syntax import { DateInput, Calendar, DatePicker, DateTimePicker, TimePicker } from '@progress/kendo-vue-dateinputs';
// CommonJS format const { DateInput, Calendar, DatePicker, DateTimePicker, TimePicker } = require('@progress/kendo-vue-dateinputs');
You are required to install one of the Kendo UI themes to style your components. For more information on how to add the styles, refer to the article on getting started.
Follow the instructions on the Kendo UI for Vue My License page to activate your license. You can skip this step if your application already contains a Kendo UI license file.
Dependencies
The Date Inputs package requires you to install the following peer dependencies in your application:
- vue 2.6.11 and 3.0.0
- @progress/kendo-vue-intl
- @progress/kendo-licensing