Vue UI Components Documentation
The Vue DropDownList contains a list of selectable items displayed in a drop-down. This guide adds the Vue DropDownList (jqxDropDownList) to an app, then shows how to set its options, handle its events and call its methods.
jqwidgets-scriptsjqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue 
In a Vue 3 project (to start one, see Getting started with Vue), add the package:
npm install jqwidgets-scripts
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css';
With <script setup>, an imported component is ready to use in the template. jqx.base.css is required; the second file is a theme, selected with the theme attribute.
The Default Functionality demo as a Single-File Component:
<template>
<JqxDropDownList :width="200" :height="25" :source="source" :selectedIndex="1">
</JqxDropDownList>
</template>
<script setup>
import { ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const source = ref([
'Affogato',
'Americano',
'Bicerin',
'Breve',
'Café Bombón',
'Café au lait',
'Caffé Corretto',
'Café Crema',
'Caffé Latte',
'Caffé macchiato',
'Café mélange',
'Coffee milk',
'Cafe mocha',
'Cappuccino',
'Carajillo',
'Cortado',
'Cuban espresso',
'Espresso',
'Eiskaffee',
'The Flat White',
'Frappuccino',
'Galao',
'Greek frappé coffee',
'Iced Coffee',
'Indian filter coffee',
'Instant coffee',
'Irish coffee',
'Liqueur coffee'
]);
</script>
<style></style>
Options are attributes. Bind values from the script with :, for example :width="850".
Listen to an event with @ and its name. For example, change: This event is triggered when the user selects an item.
<script setup>
function onChange(event) {
console.log(event.args);
}
</script>
<template>
<JqxDropDownList @change="onChange" />
</template>
Call methods through a template ref. For example, val: Gets the selected value.
<script setup>
import { ref, onMounted } from 'vue';
const myDropDownList = ref(null);
onMounted(() => {
const value = myDropDownList.value.val();
console.log(value);
});
</script>
<template>
<JqxDropDownList ref="myDropDownList" />
</template>
Every component also has setOptions({ … }) and getOptions('name').