diff --git a/src/components/listbox/Listbox.vue b/src/components/listbox/Listbox.vue index 7b42c7beb..dcfdee7a8 100644 --- a/src/components/listbox/Listbox.vue +++ b/src/components/listbox/Listbox.vue @@ -27,15 +27,15 @@ export default { props: { value: null, options: Array, - optionLabel: null, + optionLabel: null, + optionValue: null, + optionDisabled: null, listStyle: null, disabled: Boolean, dataKey: null, multiple: Boolean, metaKeySelection: Boolean, - filter: Boolean, - optionValue: null, - optionDisabled: null + filter: Boolean }, optionTouched: false, data() { diff --git a/src/views/listbox/ListboxDoc.vue b/src/views/listbox/ListboxDoc.vue index f8b542cce..084aea214 100644 --- a/src/views/listbox/ListboxDoc.vue +++ b/src/views/listbox/ListboxDoc.vue @@ -8,10 +8,11 @@ import Listbox from 'primevue/listbox';

Getting Started

-

Listbox requires a value to bind, optionLabel and a collection of options. How to define the options property; Providing an array of arbitrary objects along with the optionLabel property to specify the field name of the option.

+

Listbox requires a value to bind and a collection of arbitrary objects along with the optionLabel property to specify the label property of the option.

<Listbox v-model="selectedCity" :options="cities" optionLabel="name" /> + data() { return { @@ -36,8 +37,7 @@ data() {

Custom Content

-

Label of an option is used as the display text of an item by default, for custom content support define a template where - the local template variable refers to an option in the options collection.

+

Label of an option is used as the display text of an item by default, for custom content support define an option template that gets the option instance as a parameter.