Examples

src/vue-virtual-picklist.vue

It is a picklist that virtualizes its options to avoid mounting all of them in the DOM. Options are swaped depending on the position of the scrollbar.

Simplest Example:

b

Example with thousands of options

b
{ "label": "b", "value": "b", "index": 1 }

Enable and Disable picklist

b

v-model

b
{ "label": "b", "value": "b", "index": 1 }

Extra keys to each option

b
{ "label": "b", "value": "b", "index": 1 }

Hide Selected option

b

Enable Search

b
{ "label": "b", "value": "b", "index": 1 }

Search using a different Key

B

Change search input placeholder

B

Change picklist placeholder with property

custom placeholder

placeholder slot

custom placeholder

no-options slot

select an option

option slot

b

dropdown-icon slot

b
b

Visible Options

b

Set the Height of each Option

b

Set the Height of each option, and the Number of Visible options

b