All Components

DropDowns Overview

The DropDowns allow you to choose from a predefined list of options.

Installation

To initialize the DropDowns, either:

Initializing from CDN

The following example demonstrates how to initialize the AutoComplete, ComboBox, DropDownList, and MultiSelect components by using the CDN services. To access all CDN references, open the sample in Plunker.

<div id="vueapp" class="vue-app">
    <div class="col-xs-12 col-sm-6 example-col">
        <p>AutoComplete</p>
        <kendo-autocomplete :data-source="dataSourceArray"
                            :placeholder="'Your favorite sport'"
                            :separator="', '"
                            :filter="'contains'">
        </kendo-autocomplete>
    </div>

    <div class="col-xs-12 col-sm-6 example-col">
        <p>ComboBox</p>
        <kendo-combobox :data-source="dataSourceArray"
                        :filter="'contains'"
                        :index="0">
        </kendo-combobox>
    </div>

    <div class="col-xs-12 col-sm-6 example-col">
        <p>DropDownList</p>
        <kendo-dropdownlist :data-source=dataSourceArray
                            :index="0">
        </kendo-dropdownlist>
    </div>

    <div class="col-xs-12 col-sm-6 example-col">
        <p>MultiSelect</p>
        <kendo-multiselect :data-source=dataSourceArray
                           :filter="'contains'">
        </kendo-multiselect>
    </div>
</div>
Vue.use(DropdownsInstaller);

new Vue({
    el: "#vueapp",
    data: function() {
        return {
            dataSourceArray: [
                'Football',
                'Tennis',
                'Basketball',
                'Baseball',
                'Cricket',
                'Field Hockey',
                'Volleyball'
            ]
        }
    }
})

Initializing with Webpack

  1. Install Kendo UI and add a theme.

    npm install --save @progress/kendo-ui
    npm install --save @progress/kendo-theme-default
  2. Install the Kendo UI DropDowns package for Vue.

    npm install --save @progress/kendo-dropdowns-vue-wrapper

    The package also exports the following wrappers for individual components:

    • AutoComplete
    • ComboBox
    • DropDownList
    • MultiSelect
  3. Import the Kendo UI packages to the App component. If you use the Kendo UI components more than once in your application, add all Kendo UI-related files to the main.js file. If you use the Kendo UI components once in your application, add the Kendo UI-related files the component where they will be referred.

    import '@progress/kendo-ui'
    import '@progress/kendo-theme-default/dist/all.css'
    
    import { AutoComplete,
            ComboBox,
            DropDownList,
            MultiSelect,
            DropdownsInstaller } from '@progress/kendo-dropdowns-vue-wrapper'
    
    Vue.use(DropdownsInstaller)
    
    new Vue({
       el: '#app',
       components: {
           AutoComplete,
           ComboBox,
           DropDownList,
           MultiSelect
       }
    })
In this article