Kendo UI for Vue Native Dropdowns Overview
The KendoVue Dropdowns allow you to choose from a predefined list of options.
The Dropdowns components are part of the KendoVue library which provides native Kendo UI components for the Vue ecosystem and are available under the kendo-vue-dropdowns NPM package.
Basic Usage
The following example demonstrates the AutoComplete
, ComboBox
, DropDownList
, DropDownTree
, MultiSelect
, and MultiSelectTree
components in action.
Installation
To initialize the DropDowns, either:
Using CDN
To use the Kendo UI for Vue Native DropDowns with CDN, follow the below steps:
- Reference the
dropdowns
andintl
packages. If you need data manipulation you can add the data-query package reference it in the code by usingKendoDataQuery
object - for example KendoDataQuery.orderBy().
<script src="https://unpkg.com/@progress/kendo-data-query@1.5.2/dist/cdn/js/kendo-data-query.js"></script>
<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-dropdowns@latest/dist/cdn/js/kendo-vue-dropdowns.js"></script>
- Reference one of the Kendo UI themes to style your components.
// Load the Kendo Default Theme
<link rel="stylesheet" href="https://unpkg.com/@progress/kendo-theme-default@latest/dist/all.css">
// Load the Kendo Bootstrap Theme
<link rel="stylesheet" href="https://unpkg.com/@progress/kendo-theme-bootstrap@latest/dist/all.css">
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
// To load the Kendo Material Theme
<link rel="stylesheet" href="https://unpkg.com/@progress/kendo-theme-material@latest/dist/all.css">
// To load the Kendo Fluent Theme
<link rel="stylesheet" href="https://unpkg.com/@progress/kendo-theme-fluent@latest/dist/all.css">
- Follow the instructions in this article to activate your product license. You can skip this step if your application already contains a license key.
Initializing with Webpack
-
Download and install the package. Use Node.js v5.0.0 or later.
npm install --save @progress/kendo-vue-dropdowns @progress/kendo-vue-intl @progress/kendo-licensing @progress/kendo-svg-icons
-
Once installed, import the package module.
// ES2015 module syntax import { AutoComplete, ComboBox, DropDownList, DropDownTree, MultiSelect, MultiSelectTree } from '@progress/kendo-vue-dropdowns';
// CommonJS format const { AutoComplete, ComboBox, DropDownList, DropDownTree, MultiSelect, MultiSelectTree } = require('@progress/kendo-vue-dropdowns');
-
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 Dropdowns package requires you to install the following peer dependencies in your application:
- vue 2.6.11* or 3.0.0*
- @progress/kendo-vue-intl
- @progress/kendo-licensing
Vue 2 is currently in its end-of-support phase till Nov 2024. After our last major release for 2024, Vue 2 will no longer be supported in the new versions of the Kendo UI for Vue components. Please check our Vue 2 End of Support article for more details.
Support and Learning Resources
- AutoComplete Homepage
- ComboBox Homepage
- DropDownList Homepage
- DropDownTree Homepage
- MultiSelect Homepage
- MultiSelectTree Homepage
- API Reference of the DropDowns
- Getting Started with Kendo UI for Vue - JavaScript (Online Guide)
- Getting Started with Kendo UI for Vue - TypeScript (Online Guide)
- Getting Started with Kendo UI for Vue - JavaScript + Options API (Online Guide)
- Getting Started with Kendo UI for Vue - TypeScript + Options API (Online Guide)
- Getting Started with Kendo UI for Vue - Nuxt 3 (Online Guide)
- Virtual Classroom (Training Course for Registered Users)
- Kendo UI for Vue Native Forum
- Knowledge Base
- Kendo UI Productivity Tools extension for VS Code