diff --git a/src/views/dropdown/DropdownDoc.vue b/src/views/dropdown/DropdownDoc.vue index 86f9fd8cb..10372c1cb 100644 --- a/src/views/dropdown/DropdownDoc.vue +++ b/src/views/dropdown/DropdownDoc.vue @@ -8,7 +8,7 @@ import Dropdown from 'primevue/dropdown';

Getting Started

-

Dropdown 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.

+

Dropdown requires a value to bind and a collection of arbitrary objects along with the optionLabel property to specify the field name of the option.

<Dropdown v-model="selectedCity" :options="cities" optionLabel="name" placeholder="Select a City" /> @@ -57,98 +57,98 @@ data() {
- - - - - - + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDefaultDescription
NameTypeDefaultDescription
valueanynullValue of the component.
optionsarraynullAn array of selectitems to display as the available options.
optionLabelstringnullName of the label field of an option when an arbitrary objects instead of SelectItems are used as options.
scrollHeightstring200pxHeight of the viewport in pixels, a scrollbar is defined if height of list exceeds this value.
filterbooleanfalseWhen specified, displays an input field to filter the items on keyup.
filterPlaceholderstringnullPlaceholder text to show when filter input is empty.
editablebooleanfalseWhen present, custom value instead of predefined options can be entered using the editable input field.
placeholderstringnullDefault text to display when no option is selected.
disabledbooleanfalseWhen present, it specifies that the component should be disabled.
dataKeystringnullA property to uniquely match the value in options for better performance.
showClearbooleanfalseWhen enabled, a clear icon is displayed to clear the value.
tabindexnumbernullIndex of the element in tabbing order.
optionValuestringnull???
optionDisabledbooleannull???
valueanynullValue of the component.
optionsarraynullAn array of selectitems to display as the available options.
optionLabelstringnullProperty name to use as the label of an option.
optionValuestringnullProperty name to use as the value of an option, defaults to the option itself when not defined.
optionDisabledbooleannullProperty name to use as the disabled flag of an option, defaults to false when not defined.
scrollHeightstring200pxHeight of the viewport in pixels, a scrollbar is defined if height of list exceeds this value.
filterbooleanfalseWhen specified, displays an input field to filter the items on keyup.
filterPlaceholderstringnullPlaceholder text to show when filter input is empty.
editablebooleanfalseWhen present, custom value instead of predefined options can be entered using the editable input field.
placeholderstringnullDefault text to display when no option is selected.
disabledbooleanfalseWhen present, it specifies that the component should be disabled.
dataKeystringnullA property to uniquely match the value in options for better performance.
showClearbooleanfalseWhen enabled, a clear icon is displayed to clear the value.
tabindexnumbernullIndex of the element in tabbing order.
@@ -157,24 +157,24 @@ data() {
- - - - - + + + + + - - - - - - - - - - + + + + + + + + + +
NameParametersDescription
NameParametersDescription
changeevent.originalEvent: Original event
- event.value: Selected option value
Callback to invoke on value change
inputevent: Input field valueCallback to invoke on input event of input field (editable mode).
changeevent.originalEvent: Original event
+ event.value: Selected option value
Callback to invoke on value change.
inputvalue: New valueCallback to invoke on value change.
@@ -184,52 +184,52 @@ data() {
- - - - + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameElement
NameElement
p-dropdownContainer element.
p-dropdown-labelElement to display label of selected option.
p-dropdown-triggerIcon element.
p-dropdown-panelIcon element.
p-dropdown-items-wrapperWrapper element of items list.
p-dropdown-itemsList element of items.
p-dropdown-itemAn item in the list.
p-dropdown-filter-containerContainer of filter input.
p-dropdown-filterFilter element.
p-dropdown-openContainer element when overlay is visible.
p-dropdownContainer element.
p-dropdown-labelElement to display label of selected option.
p-dropdown-triggerIcon element.
p-dropdown-panelIcon element.
p-dropdown-items-wrapperWrapper element of items list.
p-dropdown-itemsList element of items.
p-dropdown-itemAn item in the list.
p-dropdown-filter-containerContainer of filter input.
p-dropdown-filterFilter element.
p-dropdown-openContainer element when overlay is visible.