| Name | Type | Default |
|
autoOpen
# |
Boolean
|
false
|
Sets or gets whether the DropDown is automatically opened when the mouse cursor is moved over the widget.
<template>
<JqxDropDownList
ref="myDropDownList"
:width="200"
:height="25"
:source="source"
:selectedIndex="4"
:autoOpen="true"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const source = ref([
'Affogato',
'Americano',
'Bicerin',
'Breve',
'Cappuccino',
'Espresso',
'Frappuccino',
'Iced Coffee?',
'Irish coffee',
'Liqueur coffee'
]);
</script>
|
|
autoDropDownHeight
# |
Boolean
|
false
|
Sets or gets whether the height of the jqxDropDownList's ListBox displayed in the widget's DropDown is calculated as a sum of the items heights.
<template>
<JqxDropDownList
ref="myDropDownList"
:width="200"
:height="25"
:source="source"
:selectedIndex="4"
:autoDropDownHeight="true"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const source = ref([
'Affogato',
'Americano',
'Bicerin',
'Breve',
'Cappuccino',
'Espresso',
'Frappuccino',
'Iced Coffee?',
'Irish coffee',
'Liqueur coffee'
]);
</script>
|
|
animationType
# |
String
|
'slide'
|
Sets or gets the type of the animation.
Possible Values:
'fade'
'slide'
'none'
<template>
<JqxDropDownList
ref="myDropDownList"
:width="200"
:height="25"
:source="source"
:selectedIndex="4"
:animationType="'fade'"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const source = ref([
'Affogato',
'Americano',
'Bicerin',
'Breve',
'Cappuccino',
'Espresso',
'Frappuccino',
'Iced Coffee?',
'Irish coffee',
'Liqueur coffee'
]);
</script>
|
|
checkboxes
# |
Boolean
|
false
|
Determines whether checkboxes will be displayed next to the list items.
<template>
<JqxDropDownList
ref="myDropDownList"
:width="200"
:height="25"
:source="source"
:selectedIndex="4"
:checkboxes="true"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const source = ref([
'Affogato',
'Americano',
'Bicerin',
'Breve',
'Cappuccino',
'Espresso',
'Frappuccino',
'Iced Coffee?',
'Irish coffee',
'Liqueur coffee'
]);
</script>
|
|
closeDelay
# |
Number
|
400
|
Sets or gets the delay of the 'close' animation.
<template>
<JqxDropDownList
ref="myDropDownList"
:width="200"
:height="25"
:source="source"
:selectedIndex="4"
:closeDelay="800"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const source = ref([
'Affogato',
'Americano',
'Bicerin',
'Breve',
'Cappuccino',
'Espresso',
'Frappuccino',
'Iced Coffee?',
'Irish coffee',
'Liqueur coffee'
]);
</script>
|
|
disabled
# |
Boolean
|
false
|
Enables/disables the jqxDropDownList.
<template>
<JqxDropDownList
ref="myDropDownList"
:width="200"
:height="25"
:source="source"
:selectedIndex="4"
:disabled="true"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const source = ref([
'Affogato',
'Americano',
'Bicerin',
'Breve',
'Cappuccino',
'Espresso',
'Frappuccino',
'Iced Coffee?',
'Irish coffee',
'Liqueur coffee'
]);
</script>
|
|
displayMember
# |
String
|
""
|
Sets or gets the displayMember of the Items. The displayMember specifies the name of an object property to display. The name is contained in the collection specified by the 'source' property.
<template>
<JqxDropDownList
ref="myDropDownList"
:width="200"
:height="25"
:source="source"
:selectedIndex="4"
:valueMember="'value'"
:displayMember="'label'"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const source = ref([
{ label: 'Affogato', value: 0 },
{ label: 'Americano', value: 1 },
{ label: 'Bicerin', value: 2 },
{ label: 'Breve', value: 3 },
{ label: 'Cafe Bombon', value: 4 },
{ label: 'Cafe mocha', value: 5 },
{ label: 'Caffe Latte', value: 6 }
]);
</script>
|
|
dropDownHorizontalAlignment
# |
String
|
'left'
|
Sets or gets the DropDown's alignment.
Possible Values:
'left'
'right'
<template>
<JqxDropDownList
ref="myDropDownList"
:width="200"
:height="25"
:source="source"
:selectedIndex="4"
:dropDownHorizontalAlignment="'right'"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const source = ref([
'Affogato',
'Americano',
'Bicerin',
'Breve',
'Cappuccino',
'Espresso',
'Frappuccino',
'Iced Coffee?',
'Irish coffee',
'Liqueur coffee'
]);
</script>
|
|
dropDownVerticalAlignment
# |
String
|
'bottom'
|
Sets or gets the DropDown's alignment.
Possible Values:
'top'
'bottom'
<template>
<JqxDropDownList
ref="myDropDownList"
:width="200"
:height="25"
:source="source"
:selectedIndex="4"
:dropDownVerticalAlignment="'bottom'"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const source = ref([
'Affogato',
'Americano',
'Bicerin',
'Breve',
'Cappuccino',
'Espresso',
'Frappuccino',
'Iced Coffee?',
'Irish coffee',
'Liqueur coffee'
]);
</script>
|
|
dropDownHeight
# |
Number
|
200
|
Sets or gets the height of the jqxDropDownList's ListBox displayed in the widget's DropDown.
<template>
<JqxDropDownList
ref="myDropDownList"
:width="200"
:height="25"
:source="source"
:selectedIndex="4"
:dropDownHeight="50"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const source = ref([
'Affogato',
'Americano',
'Bicerin',
'Breve',
'Cappuccino',
'Espresso',
'Frappuccino',
'Iced Coffee?',
'Irish coffee',
'Liqueur coffee'
]);
</script>
|
|
dropDownWidth
# |
Number
|
200
|
Sets or gets the width of the jqxDropDownList's ListBox displayed in the widget's DropDown.
<template>
<JqxDropDownList
ref="myDropDownList"
:width="200"
:height="25"
:source="source"
:selectedIndex="4"
:dropDownWidth="300"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const source = ref([
'Affogato',
'Americano',
'Bicerin',
'Breve',
'Cappuccino',
'Espresso',
'Frappuccino',
'Iced Coffee?',
'Irish coffee',
'Liqueur coffee'
]);
</script>
|
|
enableSelection
# |
Boolean
|
true
|
Enables/disables the selection.
<template>
<JqxDropDownList
ref="myDropDownList"
:width="200"
:height="25"
:source="source"
:selectedIndex="4"
:enableSelection="false"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const source = ref([
'Affogato',
'Americano',
'Bicerin',
'Breve',
'Cappuccino',
'Espresso',
'Frappuccino',
'Iced Coffee?',
'Irish coffee',
'Liqueur coffee'
]);
</script>
|
|
enableBrowserBoundsDetection
# |
Boolean
|
false
|
Sets or gets whether the dropdown detects the browser window's bounds and automatically adjusts the dropdown's position.
<template>
<JqxDropDownList
ref="myDropDownList"
:width="200"
:height="25"
:source="source"
:selectedIndex="4"
:enableBrowserBoundsDetection="true"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const source = ref([
'Affogato',
'Americano',
'Bicerin',
'Breve',
'Cappuccino',
'Espresso',
'Frappuccino',
'Iced Coffee?',
'Irish coffee',
'Liqueur coffee'
]);
</script>
|
|
enableHover
# |
Boolean
|
true
|
Enables/disables the hover state.
<template>
<JqxDropDownList
ref="myDropDownList"
:width="200"
:height="25"
:source="source"
:selectedIndex="4"
:enableHover="false"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const source = ref([
'Affogato',
'Americano',
'Bicerin',
'Breve',
'Cappuccino',
'Espresso',
'Frappuccino',
'Iced Coffee?',
'Irish coffee',
'Liqueur coffee'
]);
</script>
|
|
filterable
# |
Boolean
|
false
|
Determines whether the Filtering is enabled.
<template>
<JqxDropDownList
ref="myDropDownList"
:width="200"
:height="25"
:source="source"
:selectedIndex="4"
:filterable="true"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const source = ref([
'Affogato',
'Americano',
'Bicerin',
'Breve',
'Cappuccino',
'Espresso',
'Frappuccino',
'Iced Coffee?',
'Irish coffee',
'Liqueur coffee'
]);
</script>
|
|
filterHeight
# |
Number
|
27
|
Determines the Filter's height.
<template>
<JqxDropDownList
ref="myDropDownList"
:width="200"
:height="25"
:source="source"
:selectedIndex="4"
:filterHeight="40"
:filterable="true"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const source = ref([
'Affogato',
'Americano',
'Bicerin',
'Breve',
'Cappuccino',
'Espresso',
'Frappuccino',
'Iced Coffee?',
'Irish coffee',
'Liqueur coffee'
]);
</script>
|
|
filterDelay
# |
Number
|
100
|
Determines the Filter's delay. After 100 milliseconds, the widget automatically filters its data based on the filter input's value. To perform filter only on "Enter" key press, set this property to 0.
<template>
<JqxDropDownList
ref="myDropDownList"
:width="200"
:height="25"
:source="source"
:selectedIndex="4"
:filterDelay="200"
:filterable="true"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const source = ref([
'Affogato',
'Americano',
'Bicerin',
'Breve',
'Cappuccino',
'Espresso',
'Frappuccino',
'Iced Coffee?',
'Irish coffee',
'Liqueur coffee'
]);
</script>
|
|
filterPlaceHolder
# |
String
|
"Looking for"
|
Determines the Filter input's place holder.
<template>
<JqxDropDownList
ref="myDropDownList"
:width="200"
:height="25"
:source="source"
:selectedIndex="4"
:filterable="true"
:filterPlaceHolder="'Filtering...'"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const source = ref([
'Affogato',
'Americano',
'Bicerin',
'Breve',
'Cappuccino',
'Espresso',
'Frappuccino',
'Iced Coffee?',
'Irish coffee',
'Liqueur coffee'
]);
</script>
|
|
height
# |
Number | String
|
null
|
Sets or gets the jqxDropDownList's height.
<template>
<JqxDropDownList
ref="myDropDownList"
:width="200"
:height="25"
:source="source"
:selectedIndex="4"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const source = ref([
'Affogato',
'Americano',
'Bicerin',
'Breve',
'Cappuccino',
'Espresso',
'Frappuccino',
'Iced Coffee?',
'Irish coffee',
'Liqueur coffee'
]);
</script>
|
|
incrementalSearch
# |
Boolean
|
true
|
Sets or gets the incrementalSearch property. An incremental search begins searching as soon as you type the first character of the search string. As you type in the search string, jqxDropDownList automatically selects the found item. Focus the widget and start typing.
<template>
<JqxDropDownList
ref="myDropDownList"
:width="200"
:height="25"
:source="source"
:selectedIndex="4"
:incrementalSearch="true"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const source = ref([
'Affogato',
'Americano',
'Bicerin',
'Breve',
'Cappuccino',
'Espresso',
'Frappuccino',
'Iced Coffee?',
'Irish coffee',
'Liqueur coffee'
]);
</script>
|
|
incrementalSearchDelay
# |
Number
|
700
|
Sets or gets the incrementalSearchDelay property. The incrementalSearchDelay specifies the time-interval in milliseconds after which the previous search string is deleted. The timer starts when you stop typing. Focus the widget and start typing.
<template>
<JqxDropDownList
ref="myDropDownList"
:width="200"
:height="25"
:source="source"
:selectedIndex="4"
:incrementalSearchDelay="200"
:incrementalSearch="true"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const source = ref([
'Affogato',
'Americano',
'Bicerin',
'Breve',
'Cappuccino',
'Espresso',
'Frappuccino',
'Iced Coffee?',
'Irish coffee',
'Liqueur coffee'
]);
</script>
|
|
itemHeight
# |
Number
|
-1
|
Sets or gets the height of the jqxDropDownList Items. When the itemHeight == - 1, each item's height is equal to its desired height.
<template>
<JqxDropDownList
ref="myDropDownList"
:width="200"
:height="25"
:source="source"
:selectedIndex="4"
:itemHeight="30"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const source = ref([
'Affogato',
'Americano',
'Bicerin',
'Breve',
'Cappuccino',
'Espresso',
'Frappuccino',
'Iced Coffee?',
'Irish coffee',
'Liqueur coffee'
]);
</script>
|
|
openDelay
# |
Number
|
350
|
Sets or gets the delay of the 'open' animation.
<template>
<JqxDropDownList
ref="myDropDownList"
:width="200"
:height="25"
:source="source"
:selectedIndex="4"
:openDelay="2000"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const source = ref([
'Affogato',
'Americano',
'Bicerin',
'Breve',
'Cappuccino',
'Espresso',
'Frappuccino',
'Iced Coffee?',
'Irish coffee',
'Liqueur coffee'
]);
</script>
|
|
placeHolder
# |
String
|
"Please Choose:"
|
Text displayed when the selection is empty.
<template>
<JqxDropDownList
ref="myDropDownList"
:width="200"
:height="25"
:source="source"
:selectedIndex="'null'"
:placeHolder="'I am a placeholder !'"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const source = ref([
'Affogato',
'Americano',
'Bicerin',
'Breve',
'Cappuccino',
'Espresso',
'Frappuccino',
'Iced Coffee?',
'Irish coffee',
'Liqueur coffee'
]);
</script>
|
Sets or gets the popup's z-index.
<template>
<JqxDropDownList
ref="myDropDownList"
:width="200"
:height="25"
:source="source"
:selectedIndex="4"
:popupZIndex="20000"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const source = ref([
'Affogato',
'Americano',
'Bicerin',
'Breve',
'Cappuccino',
'Espresso',
'Frappuccino',
'Iced Coffee?',
'Irish coffee',
'Liqueur coffee'
]);
</script>
|
|
rtl
# |
Boolean
|
false
|
Sets or gets a value indicating whether widget's elements are aligned to support locales using right-to-left fonts.
<template>
<JqxDropDownList
ref="myDropDownList"
:width="200"
:height="25"
:source="source"
:selectedIndex="4"
:rtl="true"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const source = ref([
'Affogato',
'Americano',
'Bicerin',
'Breve',
'Cappuccino',
'Espresso',
'Frappuccino',
'Iced Coffee?',
'Irish coffee',
'Liqueur coffee'
]);
</script>
|
|
renderer
# |
Function
|
null
|
Callback function which is called when an item is rendered. By using the renderer function, you can customize the look of the list items.
<template>
<JqxDropDownList
ref="myDropDownList"
:width="200"
:height="25"
:source="source"
:selectedIndex="4"
:renderer="renderer"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const source = ref([
'Affogato',
'Americano',
'Bicerin',
'Breve',
'Cappuccino',
'Espresso',
'Frappuccino',
'Iced Coffee?',
'Irish coffee',
'Liqueur coffee'
]);
function renderer(index, label, value) {
return index + ' ' + label;
}
</script>
|
|
selectionRenderer
# |
Function
|
null
|
Callback function which is called when the selected item is rendered in the jqxDropDownList's content area. By using the selectionRenderer function, you can customize the look of the selected item.
<template>
<JqxDropDownList
ref="myDropDownList"
:width="200"
:height="25"
:source="source"
:selectedIndex="4"
:selectionRenderer="selectionRenderer"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const source = ref([
'Affogato',
'Americano',
'Bicerin',
'Breve',
'Cappuccino',
'Espresso',
'Frappuccino',
'Iced Coffee?',
'Irish coffee',
'Liqueur coffee'
]);
function selectionRenderer(htmlString) {
return 'My String';
}
</script>
|
|
searchMode
# |
String
|
startswith
|
Sets or gets the item incremental search mode. When the user types some text in a focused DropDownList, the jqxListBox widget tries to find the searched item using the entered text and the selected search mode.
Possible Values:
'none'
'contains'
'containsignorecase'
'equals'
'equalsignorecase'
'startswithignorecase'
'startswith'
'endswithignorecase'
'endswith'
<template>
<JqxDropDownList
ref="myDropDownList"
:width="200"
:height="25"
:source="source"
:selectedIndex="4"
:searchMode="'startswith'"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const source = ref([
'Affogato',
'Americano',
'Bicerin',
'Breve',
'Cappuccino',
'Espresso',
'Frappuccino',
'Iced Coffee?',
'Irish coffee',
'Liqueur coffee'
]);
</script>
|
|
source
# |
Array | Object
|
null
|
Sets or gets the items source.
<template>
<JqxDropDownList
ref="myDropDownList"
:width="200"
:height="25"
:source="source"
:selectedIndex="4"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const source = ref([
'Affogato',
'Americano',
'Bicerin',
'Breve',
'Cappuccino',
'Espresso',
'Frappuccino',
'Iced Coffee?',
'Irish coffee',
'Liqueur coffee'
]);
</script>
|
|
selectedIndex
# |
Number
|
-1
|
Sets or gets the selected index.
<template>
<JqxDropDownList
ref="myDropDownList"
:width="200"
:height="25"
:source="source"
:selectedIndex="1"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const source = ref([
'Affogato',
'Americano',
'Bicerin',
'Breve',
'Cappuccino',
'Espresso',
'Frappuccino',
'Iced Coffee?',
'Irish coffee',
'Liqueur coffee'
]);
</script>
|
|
scrollBarSize
# |
Number
|
15
|
Sets or gets the scrollbar size.
<template>
<JqxDropDownList ref="myDropDownList"
:width="200" :height="25" :source="source" :selectedIndex="4" :scrollBarSize="15"
/>
</template>
<script setup>
import { ref } from "vue";
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const source = ref(['Affogato', 'Americano', 'Bicerin', 'Breve', 'Cappuccino', 'Espresso', 'Frappuccino', 'Iced Coffee?', 'Irish coffee', 'Liqueur coffee']);
</script>
|
|
theme
# |
String
|
''
|
Sets the widget's theme. Include the desired theme CSS file after 'jqx.base.css' file.
<template>
<JqxDropDownList
ref="myDropDownList"
:width="200"
:height="25"
:source="source"
:selectedIndex="4"
:theme="'material'"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const source = ref([
'Affogato',
'Americano',
'Bicerin',
'Breve',
'Cappuccino',
'Espresso',
'Frappuccino',
'Iced Coffee?',
'Irish coffee',
'Liqueur coffee'
]);
</script>
|
|
template
# |
String
|
''
|
<template>
<JqxDropDownList
ref="myDropDownList"
:width="200"
:height="25"
:source="source"
:selectedIndex="4"
:template="'success'"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const source = ref([
'Affogato',
'Americano',
'Bicerin',
'Breve',
'Cappuccino',
'Espresso',
'Frappuccino',
'Iced Coffee?',
'Irish coffee',
'Liqueur coffee'
]);
</script>
|
|
valueMember
# |
String
|
""
|
Sets or gets the valueMember of the Items. The valueMember specifies the name of an object property to set as a 'value' of the list items. The name is contained in the collection specified by the 'source' property.
<template>
<JqxDropDownList
ref="myDropDownList"
:width="200"
:height="25"
:source="source"
:selectedIndex="4"
:valueMember="'value'"
:displayMember="'label'"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const source = ref([
{ label: 'Affogato', value: 0 },
{ label: 'Americano', value: 1 },
{ label: 'Bicerin', value: 2 },
{ label: 'Breve', value: 3 },
{ label: 'Cafe Bombon', value: 4 },
{ label: 'Cafe mocha', value: 5 },
{ label: 'Caffe Latte', value: 6 }
]);
</script>
|
|
width
# |
Number | String
|
null
|
Sets or gets the jqxDropDownList's width.
<template>
<JqxDropDownList
ref="myDropDownList"
:width="200"
:height="25"
:source="source"
:selectedIndex="4"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const source = ref([
'Affogato',
'Americano',
'Bicerin',
'Breve',
'Cappuccino',
'Espresso',
'Frappuccino',
'Iced Coffee?',
'Irish coffee',
'Liqueur coffee'
]);
</script>
|
|
|
|
bindingComplete
# |
Event
|
|
This event is triggered when the data binding operation is completed.
Code examples #
Bind to the bindingComplete event of jqxDropDownList.
<template>
<JqxDropDownList
ref="myDropDownList"
@bindingComplete="onBindingComplete($event)"
:width="200"
:height="25"
:selectedIndex="4"
/>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const myDropDownList = ref(null);
const source = ref([
'Affogato',
'Americano',
'Bicerin',
'Breve',
'Cappuccino',
'Espresso',
'Frappuccino',
'Iced Coffee?',
'Irish coffee',
'Liqueur coffee'
]);
function onBindingComplete(event) {
alert('do something...');
}
onMounted(() => {
myDropDownList.value.source = source.value;
});
</script>
|
|
close
# |
Event
|
|
This event is triggered when the popup ListBox is closed.
Code examples #
Bind to the close event of jqxDropDownList.
<template>
<JqxDropDownList
ref="myDropDownList"
@close="onClose($event)"
:width="200"
:height="25"
:source="source"
:selectedIndex="4"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const source = ref([
'Affogato',
'Americano',
'Bicerin',
'Breve',
'Cappuccino',
'Espresso',
'Frappuccino',
'Iced Coffee?',
'Irish coffee',
'Liqueur coffee'
]);
function onClose(event) {
alert('do something...');
}
</script>
|
|
checkChange
# |
Event
|
|
This event is triggered when an item is checked/unchecked.
Code examples #
Bind to the checkChange event of jqxDropDownList.
<template>
<JqxDropDownList
ref="myDropDownList"
@checkChange="onCheckChange($event)"
:width="200"
:height="25"
:source="source"
:selectedIndex="4"
/>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const myDropDownList = ref(null);
const source = ref([
'Affogato',
'Americano',
'Bicerin',
'Breve',
'Cappuccino',
'Espresso',
'Frappuccino',
'Iced Coffee?',
'Irish coffee',
'Liqueur coffee'
]);
function onCheckChange(event) {
alert('do something...');
}
onMounted(() => {
myDropDownList.value.checkboxes = true;
});
</script>
|
|
change
# |
Event
|
|
This event is triggered when the user selects an item.
Code examples #
Bind to the change event of jqxDropDownList.
<template>
<JqxDropDownList
ref="myDropDownList"
@change="onChange($event)"
:width="200"
:height="25"
:source="source"
:selectedIndex="4"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const source = ref([
'Affogato',
'Americano',
'Bicerin',
'Breve',
'Cappuccino',
'Espresso',
'Frappuccino',
'Iced Coffee?',
'Irish coffee',
'Liqueur coffee'
]);
function onChange(event) {
alert('do something...');
}
</script>
|
|
open
# |
Event
|
|
This event is triggered when the popup ListBox is opened.
Code examples #
Bind to the open event of jqxDropDownList.
<template>
<JqxDropDownList
ref="myDropDownList"
@open="onOpen($event)"
:width="200"
:height="25"
:source="source"
:selectedIndex="4"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const source = ref([
'Affogato',
'Americano',
'Bicerin',
'Breve',
'Cappuccino',
'Espresso',
'Frappuccino',
'Iced Coffee?',
'Irish coffee',
'Liqueur coffee'
]);
function onOpen(event) {
alert('do something...');
}
</script>
|
|
select
# |
Event
|
|
This event is triggered when the user selects an item.
Code examples #
Bind to the select event of jqxDropDownList.
<template>
<JqxDropDownList
ref="myDropDownList"
@select="onSelect($event)"
:width="200"
:height="25"
:source="source"
:selectedIndex="4"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const source = ref([
'Affogato',
'Americano',
'Bicerin',
'Breve',
'Cappuccino',
'Espresso',
'Frappuccino',
'Iced Coffee?',
'Irish coffee',
'Liqueur coffee'
]);
function onSelect(event) {
alert('do something...');
}
</script>
|
|
unselect
# |
Event
|
|
This event is triggered when the user unselects an item.
Code examples #
Bind to the unselect event of jqxDropDownList.
<template>
<JqxDropDownList
ref="myDropDownList"
@unselect="onUnselect($event)"
:width="200"
:height="25"
:source="source"
:selectedIndex="4"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const source = ref([
'Affogato',
'Americano',
'Bicerin',
'Breve',
'Cappuccino',
'Espresso',
'Frappuccino',
'Iced Coffee?',
'Irish coffee',
'Liqueur coffee'
]);
function onUnselect(event) {
alert('do something...');
}
</script>
|
|
|
| Name | Arguments | Return Type |
|
addItem
# |
item
|
None
|
Adds a new item to the jqxDropDownList. Returns 'true', if the new item is added or 'false' if the item is not added.
- label - determines the item's label.
- value - determines the item's value.
- disabled - determines whether the item is enabled/disabled.
- checked - determines whether item is checked/unchecked.
- hasThreeStates - determines whether the item's checkbox supports three states.
- html - determines the item's display html. This can be used instead of label.
- group - determines the item's group.
<template>
<JqxDropDownList
ref="myDropDownList"
:width="200"
:height="25"
:source="source"
:selectedIndex="4"
/>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const myDropDownList = ref(null);
const source = ref([
'Affogato',
'Americano',
'Bicerin',
'Breve',
'Cappuccino',
'Espresso',
'Frappuccino',
'Iced Coffee?',
'Irish coffee',
'Liqueur coffee'
]);
onMounted(() => {
myDropDownList.value.addItem('Item1');
});
</script>
|
|
clearSelection
# |
None
|
None
|
Clears all selected items.
<template>
<JqxDropDownList
ref="myDropDownList"
:width="200"
:height="25"
:source="source"
:selectedIndex="4"
/>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const myDropDownList = ref(null);
const source = ref([
'Affogato',
'Americano',
'Bicerin',
'Breve',
'Cappuccino',
'Espresso',
'Frappuccino',
'Iced Coffee?',
'Irish coffee',
'Liqueur coffee'
]);
onMounted(() => {
myDropDownList.value.clearSelection();
});
</script>
|
|
clear
# |
None
|
None
|
Clears all items.
<template>
<JqxDropDownList
ref="myDropDownList"
:width="200"
:height="25"
:source="source"
:selectedIndex="4"
/>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const myDropDownList = ref(null);
const source = ref([
'Affogato',
'Americano',
'Bicerin',
'Breve',
'Cappuccino',
'Espresso',
'Frappuccino',
'Iced Coffee?',
'Irish coffee',
'Liqueur coffee'
]);
onMounted(() => {
myDropDownList.value.clear();
});
</script>
|
|
close
# |
None
|
None
|
Hides the popup listbox.
<template>
<JqxDropDownList
ref="myDropDownList"
:width="200"
:height="25"
:source="source"
:selectedIndex="4"
/>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const myDropDownList = ref(null);
const source = ref([
'Affogato',
'Americano',
'Bicerin',
'Breve',
'Cappuccino',
'Espresso',
'Frappuccino',
'Iced Coffee?',
'Irish coffee',
'Liqueur coffee'
]);
onMounted(() => {
myDropDownList.value.open();
setTimeout((_) => myDropDownList.value.close(), 1000);
});
</script>
|
|
checkIndex
# |
index
|
None
|
Checks a list item when the 'checkboxes' property value is true. The index is zero-based, i.e to check the first item, the 'checkIndex' method should be called with parameter 0.
<template>
<JqxDropDownList
ref="myDropDownList"
:width="200"
:height="25"
:source="source"
:selectedIndex="4"
/>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const myDropDownList = ref(null);
const source = ref([
'Affogato',
'Americano',
'Bicerin',
'Breve',
'Cappuccino',
'Espresso',
'Frappuccino',
'Iced Coffee?',
'Irish coffee',
'Liqueur coffee'
]);
onMounted(() => {
myDropDownList.value.checkboxes = true;
myDropDownList.value.checkIndex(2);
});
</script>
|
|
checkItem
# |
item
|
None
|
Checks an item.
<template>
<JqxDropDownList
ref="myDropDownList"
:width="200"
:height="25"
:source="source"
:selectedIndex="4"
/>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const myDropDownList = ref(null);
const source = ref([
'Affogato',
'Americano',
'Bicerin',
'Breve',
'Cappuccino',
'Espresso',
'Frappuccino',
'Iced Coffee?',
'Irish coffee',
'Liqueur coffee'
]);
onMounted(() => {
myDropDownList.value.checkboxes = true;
myDropDownList.value.checkItem('Item1');
});
</script>
|
|
checkAll
# |
None
|
None
|
Checks all list items when the 'checkboxes' property value is true.
<template>
<JqxDropDownList
ref="myDropDownList"
:width="200"
:height="25"
:source="source"
:selectedIndex="4"
/>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const myDropDownList = ref(null);
const source = ref([
'Affogato',
'Americano',
'Bicerin',
'Breve',
'Cappuccino',
'Espresso',
'Frappuccino',
'Iced Coffee?',
'Irish coffee',
'Liqueur coffee'
]);
onMounted(() => {
myDropDownList.value.checkboxes = true;
myDropDownList.value.checkAll();
});
</script>
|
|
clearFilter
# |
None
|
None
|
Clears the widget's filter when filtering is applied.
<template>
<div>
<JqxDropDownList
ref="myDropDownList"
:width="200"
:height="25"
:source="source"
:filterable="true"
:selectedIndex="4"
/>
<p>Please apply a filter and then clear it with the button:</p>
<JqxButton @click="onClick()" :width="120">Clear Filter</JqxButton>
</div>
</template>
<script setup>
import { ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
import JqxButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbuttons.vue';
const myDropDownList = ref(null);
const source = ref([
'Affogato',
'Americano',
'Bicerin',
'Breve',
'Cappuccino',
'Espresso',
'Frappuccino',
'Iced Coffee?',
'Irish coffee',
'Liqueur coffee'
]);
function onClick() {
myDropDownList.value.clearFilter();
}
</script>
|
|
destroy
# |
None
|
None
|
Destroys the widget.
<template>
<JqxDropDownList
ref="myDropDownList"
:width="200"
:height="25"
:source="source"
:selectedIndex="4"
/>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const myDropDownList = ref(null);
const source = ref([
'Affogato',
'Americano',
'Bicerin',
'Breve',
'Cappuccino',
'Espresso',
'Frappuccino',
'Iced Coffee?',
'Irish coffee',
'Liqueur coffee'
]);
onMounted(() => {
myDropDownList.value.destroy();
});
</script>
|
|
disableItem
# |
item
|
None
|
Disables an item. Item is an object.
- label - determines the item's label.
- value - determines the item's value.
- disabled - determines whether the item is enabled/disabled.
- checked - determines whether item is checked/unchecked.
- hasThreeStates - determines whether the item's checkbox supports three states.
- html - determines the item's display html. This can be used instead of label.
- group - determines the item's group.
<template>
<JqxDropDownList
ref="myDropDownList"
:width="200"
:height="25"
:source="source"
:selectedIndex="4"
/>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const myDropDownList = ref(null);
const source = ref([
'Affogato',
'Americano',
'Bicerin',
'Breve',
'Cappuccino',
'Espresso',
'Frappuccino',
'Iced Coffee?',
'Irish coffee',
'Liqueur coffee'
]);
onMounted(() => {
myDropDownList.value.disableItem('Bicerin');
});
</script>
|
|
disableAt
# |
index
|
None
|
Disables an item by index. Index is a number.
<template>
<JqxDropDownList
ref="myDropDownList"
:width="200"
:height="25"
:source="source"
:selectedIndex="4"
/>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const myDropDownList = ref(null);
const source = ref([
'Affogato',
'Americano',
'Bicerin',
'Breve',
'Cappuccino',
'Espresso',
'Frappuccino',
'Iced Coffee?',
'Irish coffee',
'Liqueur coffee'
]);
onMounted(() => {
myDropDownList.value.disableAt(2);
});
</script>
|
|
enableItem
# |
item
|
None
|
Enables an item. Item is an object.
- label - determines the item's label.
- value - determines the item's value.
- disabled - determines whether the item is enabled/disabled.
- checked - determines whether item is checked/unchecked.
- hasThreeStates - determines whether the item's checkbox supports three states.
- html - determines the item's display html. This can be used instead of label.
- group - determines the item's group.
<template>
<div>
<JqxDropDownList
ref="myDropDownList"
:width="200"
:height="25"
:source="source"
:selectedIndex="4"
/>
<p>Please click the button to enable the item "Breve":</p>
<JqxButton @click="onClick()" :width="120">Enable</JqxButton>
</div>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
import JqxButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbuttons.vue';
const myDropDownList = ref(null);
const source = ref([
'Affogato',
'Americano',
'Bicerin',
'Breve',
'Cappuccino',
'Espresso',
'Frappuccino',
'Iced Coffee?',
'Irish coffee',
'Liqueur coffee'
]);
function onClick() {
myDropDownList.value.enableItem('Breve');
}
onMounted(() => {
myDropDownList.value.disableItem('Breve');
});
</script>
|
|
enableAt
# |
index
|
None
|
Enables a disabled item by index. Index is a number.
<template>
<div>
<JqxDropDownList
ref="myDropDownList"
:width="200"
:height="25"
:source="source"
:selectedIndex="4"
/>
<p>Please click the button to enable the item at "2" position:</p>
<JqxButton @click="onClick()" :width="120">Enable</JqxButton>
</div>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
import JqxButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbuttons.vue';
const myDropDownList = ref(null);
const source = ref([
'Affogato',
'Americano',
'Bicerin',
'Breve',
'Cappuccino',
'Espresso',
'Frappuccino',
'Iced Coffee?',
'Irish coffee',
'Liqueur coffee'
]);
function onClick() {
myDropDownList.value.enableAt('2');
}
onMounted(() => {
myDropDownList.value.disableAt('2');
});
</script>
|
|
ensureVisible
# |
index
|
None
|
Ensures that an item is visible. index is number. When necessary, the jqxDropDownList scrolls to the item to make it visible.
<template>
<JqxDropDownList
ref="myDropDownList"
@open="onOpen()"
:width="200"
:height="25"
:source="source"
/>
</template>
<script setup>
import { ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const myDropDownList = ref(null);
const source = ref([
'Affogato',
'Americano',
'Bicerin',
'Breve',
'Cappuccino',
'Espresso',
'Frappuccino',
'Iced Coffee?',
'Irish coffee',
'Liqueur coffee'
]);
function onOpen() {
myDropDownList.value.selectIndex(9);
myDropDownList.value.ensureVisible(9);
}
</script>
|
|
focus
# |
None
|
None
|
Sets the focus to the widget.
<template>
<JqxDropDownList
ref="myDropDownList"
:width="200"
:height="25"
:source="source"
:selectedIndex="4"
/>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const myDropDownList = ref(null);
const source = ref([
'Affogato',
'Americano',
'Bicerin',
'Breve',
'Cappuccino',
'Espresso',
'Frappuccino',
'Iced Coffee?',
'Irish coffee',
'Liqueur coffee'
]);
onMounted(() => {
myDropDownList.value.focus();
});
</script>
|
|
getItem
# |
index
|
Object
|
Gets item by index. The returned value is an object with the following fields:
- label - gets item's label.
- value - gets the item's value.
- disabled - gets whether the item is enabled/disabled.
- checked - gets whether the item is checked/unchecked.
- hasThreeStates - determines whether the item's checkbox supports three states.
- html - gets the item's display html. This can be used instead of label.
- index - gets the item's index.
- group - gets the item's group.
<template>
<JqxDropDownList
ref="myDropDownList"
:width="200"
:height="25"
:source="source"
:selectedIndex="4"
/>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const myDropDownList = ref(null);
const source = ref([
'Affogato',
'Americano',
'Bicerin',
'Breve',
'Cappuccino',
'Espresso',
'Frappuccino',
'Iced Coffee?',
'Irish coffee',
'Liqueur coffee'
]);
onMounted(() => {
const value = myDropDownList.value.getItem(2);
});
</script>
|
|
getItemByValue
# |
itemValue
|
Object
|
Gets an item by its value. The returned value is an object with the following fields:
- label - gets item's label.
- value - gets the item's value.
- disabled - gets whether the item is enabled/disabled.
- checked - gets whether the item is checked/unchecked.
- hasThreeStates - determines whether the item's checkbox supports three states.
- html - gets the item's display html. This can be used instead of label.
- index - gets the item's index.
- group - gets the item's group.
<template>
<JqxDropDownList
ref="myDropDownList"
:width="200"
:height="25"
:source="source"
:selectedIndex="4"
/>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const myDropDownList = ref(null);
const source = ref([
'Affogato',
'Americano',
'Bicerin',
'Breve',
'Cappuccino',
'Espresso',
'Frappuccino',
'Iced Coffee?',
'Irish coffee',
'Liqueur coffee'
]);
onMounted(() => {
const value = myDropDownList.value.getItemByValue('Breve');
});
</script>
|
|
getItems
# |
None
|
Array
|
Gets all items. The returned value is an array of Items.
- label - gets item's label.
- value - gets the item's value.
- disabled - gets whether the item is enabled/disabled.
- checked - gets whether the item is checked/unchecked.
- hasThreeStates - determines whether the item's checkbox supports three states.
- html - gets the item's display html. This can be used instead of label.
- index - gets the item's index.
- group - gets the item's group.
<template>
<JqxDropDownList
ref="myDropDownList"
:width="200"
:height="25"
:source="source"
:selectedIndex="4"
/>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const myDropDownList = ref(null);
const source = ref([
'Affogato',
'Americano',
'Bicerin',
'Breve',
'Cappuccino',
'Espresso',
'Frappuccino',
'Iced Coffee?',
'Irish coffee',
'Liqueur coffee'
]);
onMounted(() => {
const value = myDropDownList.value.getItems();
});
</script>
|
|
getCheckedItems
# |
None
|
Array
|
Gets the checked items. The returned value is an array of Items.
- label - gets item's label.
- value - gets the item's value.
- disabled - gets whether the item is enabled/disabled.
- checked - gets whether the item is checked/unchecked.
- hasThreeStates - determines whether the item's checkbox supports three states.
- html - gets the item's display html. This can be used instead of label.
- index - gets the item's index.
- group - gets the item's group.
<template>
<JqxDropDownList
ref="myDropDownList"
:checkboxes="true"
:width="200"
:height="25"
:source="source"
:selectedIndex="4"
/>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const myDropDownList = ref(null);
const source = ref([
'Affogato',
'Americano',
'Bicerin',
'Breve',
'Cappuccino',
'Espresso',
'Frappuccino',
'Iced Coffee?',
'Irish coffee',
'Liqueur coffee'
]);
onMounted(() => {
myDropDownList.value.checkIndex(1);
myDropDownList.value.checkIndex(3);
myDropDownList.value.checkIndex(5);
const value = myDropDownList.value.getCheckedItems();
});
</script>
|
|
getSelectedItem
# |
None
|
Object
|
Gets the selected item. The returned value is an object or null(if there is no selected item).
- label - gets item's label.
- value - gets the item's value.
- disabled - gets whether the item is enabled/disabled.
- checked - gets whether the item is checked/unchecked.
- hasThreeStates - determines whether the item's checkbox supports three states.
- html - gets the item's display html. This can be used instead of label.
- index - gets the item's index.
- group - gets the item's group.
<template>
<JqxDropDownList
ref="myDropDownList"
:width="200"
:height="25"
:source="source"
:selectedIndex="4"
/>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const myDropDownList = ref(null);
const source = ref([
'Affogato',
'Americano',
'Bicerin',
'Breve',
'Cappuccino',
'Espresso',
'Frappuccino',
'Iced Coffee?',
'Irish coffee',
'Liqueur coffee'
]);
onMounted(() => {
const value = myDropDownList.value.getSelectedItem();
});
</script>
|
|
getSelectedIndex
# |
None
|
Number
|
Gets the index of the selected item. The returned value is the index of the selected item. If there's no selected item, -1 is returned.
<template>
<JqxDropDownList
ref="myDropDownList"
:width="200"
:height="25"
:source="source"
:selectedIndex="4"
/>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const myDropDownList = ref(null);
const source = ref([
'Affogato',
'Americano',
'Bicerin',
'Breve',
'Cappuccino',
'Espresso',
'Frappuccino',
'Iced Coffee?',
'Irish coffee',
'Liqueur coffee'
]);
onMounted(() => {
const value = myDropDownList.value.getSelectedIndex();
});
</script>
|
|
insertAt
# |
item, index
|
None
|
Inserts a new item to the jqxDropDownList. Returns 'true', if the new item is inserted or false if the insertion fails. The first parameter is object or string - the new item. The second parameter is number - the item's index.
- label - determines the item's label.
- value - determines the item's value.
- disabled - determines whether the item is enabled/disabled.
- checked - determines whether item is checked/unchecked.
- hasThreeStates - determines whether the item's checkbox supports three states.
- html - determines the item's display html. This can be used instead of label.
- group - determines the item's group.
<template>
<JqxDropDownList
ref="myDropDownList"
:width="200"
:height="25"
:source="source"
:selectedIndex="4"
/>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const myDropDownList = ref(null);
const source = ref([
'Affogato',
'Americano',
'Bicerin',
'Breve',
'Cappuccino',
'Espresso',
'Frappuccino',
'Iced Coffee?',
'Irish coffee',
'Liqueur coffee'
]);
onMounted(() => {
myDropDownList.value.insertAt('Item1', 0);
});
</script>
|
|
isOpened
# |
None
|
Boolean
|
Returns true, if the popup is opened. Otherwise returns false.
<template>
<JqxDropDownList
ref="myDropDownList"
:width="200"
:height="25"
:source="source"
:selectedIndex="4"
/>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const myDropDownList = ref(null);
const source = ref([
'Affogato',
'Americano',
'Bicerin',
'Breve',
'Cappuccino',
'Espresso',
'Frappuccino',
'Iced Coffee?',
'Irish coffee',
'Liqueur coffee'
]);
onMounted(() => {
const value = myDropDownList.value.isOpened();
});
</script>
|
|
indeterminateIndex
# |
index
|
None
|
indeterminates a list item when the 'checkboxes' property value is true. The index is zero-based, i.e to indeterminate the first item, the 'indeterminateIndex' method should be called with parameter 0.
<template>
<JqxDropDownList
ref="myDropDownList"
:width="200"
:height="25"
:source="source"
:selectedIndex="4"
/>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const myDropDownList = ref(null);
const source = ref([
'Affogato',
'Americano',
'Bicerin',
'Breve',
'Cappuccino',
'Espresso',
'Frappuccino',
'Iced Coffee?',
'Irish coffee',
'Liqueur coffee'
]);
onMounted(() => {
myDropDownList.value.checkboxes = true;
myDropDownList.value.indeterminateIndex(2);
});
</script>
|
|
indeterminateItem
# |
item
|
None
|
Indeterminates an item.
<template>
<JqxDropDownList
ref="myDropDownList"
:width="200"
:height="25"
:source="source"
:selectedIndex="4"
/>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const myDropDownList = ref(null);
const source = ref([
'Affogato',
'Americano',
'Bicerin',
'Breve',
'Cappuccino',
'Espresso',
'Frappuccino',
'Iced Coffee?',
'Irish coffee',
'Liqueur coffee'
]);
onMounted(() => {
myDropDownList.value.checkboxes = true;
myDropDownList.value.indeterminateItem('Breve');
});
</script>
|
|
loadFromSelect
# |
arg
|
None
|
Loads list items from a 'select' tag.
<template>
<div>
<JqxDropDownList
ref="myDropDownList"
style="float: left"
@select="listOnSelect($event)"
:width="200"
:height="25"
:selectedIndex="0"
>
</JqxDropDownList>
<div style="float: left">
<select ref="select" id="select" style="height: 25px; width: 200px; margin-left: 30px">
<option>Affogato</option>
<option>Americano</option>
<option>Bicerin</option>
<option>Breve</option>
</select>
</div>
</div>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const myDropDownList = ref(null);
const select = ref(null);
let selectElement;
let updating;
function listOnSelect(event) {
if (event.args && !this.updating) {
const index = event.args.item.index;
this.selectElement.selectedIndex = index;
}
}
onMounted(() => {
myDropDownList.value.loadFromSelect('select');
selectElement = select.value;
selectElement.addEventListener('change', (event) => {
updating = true;
const index = selectElement.selectedIndex;
myDropDownList.value.selectIndex(index);
myDropDownList.value.ensureVisible(index);
updating = false;
});
});
</script>
|
|
open
# |
None
|
None
|
Shows the popup listbox.
<template>
<JqxDropDownList
ref="myDropDownList"
:width="200"
:height="25"
:source="source"
:selectedIndex="4"
/>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const myDropDownList = ref(null);
const source = ref([
'Affogato',
'Americano',
'Bicerin',
'Breve',
'Cappuccino',
'Espresso',
'Frappuccino',
'Iced Coffee?',
'Irish coffee',
'Liqueur coffee'
]);
onMounted(() => {
myDropDownList.value.open();
setTimeout((_) => myDropDownList.value.close(), 1000);
});
</script>
|
|
removeItem
# |
item
|
None
|
Removes an item from the listbox. Parameter type: object returned by the "getItem" method or string - the value of an item. Returns 'true', if the item is removed or 'false', if the item is not removed.
<template>
<JqxDropDownList
ref="myDropDownList"
:width="200"
:height="25"
:source="source"
:selectedIndex="4"
/>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const myDropDownList = ref(null);
const source = ref([
'Affogato',
'Americano',
'Bicerin',
'Breve',
'Cappuccino',
'Espresso',
'Frappuccino',
'Iced Coffee?',
'Irish coffee',
'Liqueur coffee'
]);
onMounted(() => {
myDropDownList.value.removeItem('Breve');
});
</script>
|
|
removeAt
# |
index
|
None
|
Removes an item from the listbox. Parameter type: number - the index of the item. The method returns 'true', if the item is removed or 'false', if the item is not removed.
<template>
<JqxDropDownList
ref="myDropDownList"
:width="200"
:height="25"
:source="source"
:selectedIndex="4"
/>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const myDropDownList = ref(null);
const source = ref([
'Affogato',
'Americano',
'Bicerin',
'Breve',
'Cappuccino',
'Espresso',
'Frappuccino',
'Iced Coffee?',
'Irish coffee',
'Liqueur coffee'
]);
onMounted(() => {
myDropDownList.value.removeAt(1);
});
</script>
|
|
selectIndex
# |
index
|
None
|
Selects an item by index. The index is zero-based, i.e to select the first item, the 'selectIndex' method should be called with parameter 0.
<template>
<JqxDropDownList
ref="myDropDownList"
:width="200"
:height="25"
:source="source"
:selectedIndex="4"
/>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const myDropDownList = ref(null);
const source = ref([
'Affogato',
'Americano',
'Bicerin',
'Breve',
'Cappuccino',
'Espresso',
'Frappuccino',
'Iced Coffee?',
'Irish coffee',
'Liqueur coffee'
]);
onMounted(() => {
myDropDownList.value.selectIndex(1);
});
</script>
|
|
selectItem
# |
item
|
None
|
Selects an item.
<template>
<JqxDropDownList
ref="myDropDownList"
:width="200"
:height="25"
:source="source"
:selectedIndex="4"
/>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const myDropDownList = ref(null);
const source = ref([
'Affogato',
'Americano',
'Bicerin',
'Breve',
'Cappuccino',
'Espresso',
'Frappuccino',
'Iced Coffee?',
'Irish coffee',
'Liqueur coffee'
]);
onMounted(() => {
myDropDownList.value.selectItem('Breve');
});
</script>
|
|
setContent
# |
content
|
None
|
Sets the content of the DropDownList.
<template>
<JqxDropDownList
ref="myDropDownList"
:width="200"
:height="25"
:source="source"
:selectedIndex="4"
/>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const myDropDownList = ref(null);
const source = ref([
'Affogato',
'Americano',
'Bicerin',
'Breve',
'Cappuccino',
'Espresso',
'Frappuccino',
'Iced Coffee?',
'Irish coffee',
'Liqueur coffee'
]);
onMounted(() => {
myDropDownList.value.setContent('Some Content');
});
</script>
|
|
updateItem
# |
newItem, item
|
None
|
Updates an item. The first parameter is the new item. The second parameter could be an existing item or the value of an existing item.
- label - determines the item's label.
- value - determines the item's value.
- disabled - determines whether the item is enabled/disabled.
- checked - determines whether item is checked/unchecked.
- hasThreeStates - determines whether the item's checkbox supports three states.
- html - determines the item's display html. This can be used instead of label.
- group - determines the item's group.
<template>
<JqxDropDownList
ref="myDropDownList"
:width="200"
:height="25"
:source="source"
:selectedIndex="4"
/>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const myDropDownList = ref(null);
const source = ref([
'Affogato',
'Americano',
'Bicerin',
'Breve',
'Cappuccino',
'Espresso',
'Frappuccino',
'Iced Coffee?',
'Irish coffee',
'Liqueur coffee'
]);
onMounted(() => {
myDropDownList.value.updateItem('New Breve', 'Breve');
});
</script>
|
|
updateAt
# |
item, index
|
None
|
Updates an item. The first parameter is the new item. The second parameter is the index of the item to be updated.
- label - determines the item's label.
- value - determines the item's value.
- disabled - determines whether the item is enabled/disabled.
- checked - determines whether item is checked/unchecked.
- hasThreeStates - determines whether the item's checkbox supports three states.
- html - determines the item's display html. This can be used instead of label.
- group - determines the item's group.
<template>
<JqxDropDownList
ref="myDropDownList"
:width="200"
:height="25"
:source="source"
:selectedIndex="4"
/>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const myDropDownList = ref(null);
const source = ref([
'Affogato',
'Americano',
'Bicerin',
'Breve',
'Cappuccino',
'Espresso',
'Frappuccino',
'Iced Coffee?',
'Irish coffee',
'Liqueur coffee'
]);
onMounted(() => {
myDropDownList.value.updateAt('New Americano', 1);
});
</script>
|
|
unselectIndex
# |
index
|
None
|
Unselects item by index. The index is zero-based, i.e to unselect the first item, the 'unselectIndex' method should be called with parameter 0.
<template>
<JqxDropDownList
ref="myDropDownList"
:width="200"
:height="25"
:source="source"
:selectedIndex="4"
/>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const myDropDownList = ref(null);
const source = ref([
'Affogato',
'Americano',
'Bicerin',
'Breve',
'Cappuccino',
'Espresso',
'Frappuccino',
'Iced Coffee?',
'Irish coffee',
'Liqueur coffee'
]);
onMounted(() => {
myDropDownList.value.unselectIndex(4);
});
</script>
|
|
unselectItem
# |
item
|
None
|
Unselects an item.
<template>
<JqxDropDownList
ref="myDropDownList"
:width="200"
:height="25"
:source="source"
:selectedIndex="4"
/>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const myDropDownList = ref(null);
const source = ref([
'Affogato',
'Americano',
'Bicerin',
'Breve',
'Cappuccino',
'Espresso',
'Frappuccino',
'Iced Coffee?',
'Irish coffee',
'Liqueur coffee'
]);
onMounted(() => {
myDropDownList.value.unselectItem('Cappuccino');
});
</script>
|
|
uncheckIndex
# |
index
|
None
|
Unchecks a list item when the 'checkboxes' property value is true. The index is zero-based, i.e to uncheck the first item, the 'uncheckIndex' method should be called with parameter 0.
<template>
<JqxDropDownList
ref="myDropDownList"
:checkboxes="true"
:width="200"
:height="25"
:source="source"
:selectedIndex="4"
/>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const myDropDownList = ref(null);
const source = ref([
'Affogato',
'Americano',
'Bicerin',
'Breve',
'Cappuccino',
'Espresso',
'Frappuccino',
'Iced Coffee?',
'Irish coffee',
'Liqueur coffee'
]);
onMounted(() => {
myDropDownList.value.checkAll();
myDropDownList.value.uncheckIndex(2);
myDropDownList.value.uncheckIndex(3);
});
</script>
|
|
uncheckItem
# |
item
|
None
|
Unchecks an item.
<template>
<JqxDropDownList
ref="myDropDownList"
:checkboxes="true"
:width="200"
:height="25"
:source="source"
:selectedIndex="4"
/>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const myDropDownList = ref(null);
const source = ref([
'Affogato',
'Americano',
'Bicerin',
'Breve',
'Cappuccino',
'Espresso',
'Frappuccino',
'Iced Coffee?',
'Irish coffee',
'Liqueur coffee'
]);
onMounted(() => {
myDropDownList.value.checkAll();
myDropDownList.value.uncheckItem('Bicerin');
myDropDownList.value.uncheckItem('Breve');
});
</script>
|
|
uncheckAll
# |
None
|
None
|
Unchecks all list items when the 'checkboxes' property value is true.
<template>
<JqxDropDownList
ref="myDropDownList"
:checkboxes="true"
:width="200"
:height="25"
:source="source"
:selectedIndex="4"
/>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const myDropDownList = ref(null);
const source = ref([
'Affogato',
'Americano',
'Bicerin',
'Breve',
'Cappuccino',
'Espresso',
'Frappuccino',
'Iced Coffee?',
'Irish coffee',
'Liqueur coffee'
]);
onMounted(() => {
myDropDownList.value.checkAll();
myDropDownList.value.open();
setTimeout((_) => myDropDownList.value.uncheckAll(), 1000);
});
</script>
|
|
val
# |
value
|
String
|
Gets the selected value.
<template>
<JqxDropDownList
ref="myDropDownList"
:width="200"
:height="25"
:source="source"
:selectedIndex="4"
/>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxDropDownList from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdropdownlist.vue';
const myDropDownList = ref(null);
const source = ref([
'Affogato',
'Americano',
'Bicerin',
'Breve',
'Cappuccino',
'Espresso',
'Frappuccino',
'Iced Coffee?',
'Irish coffee',
'Liqueur coffee'
]);
onMounted(() => {
const value = myDropDownList.value.val();
});
</script>
|