Files
directus/src/components/v-select
Rijk van Zanten 9e5c0f0078 Inline select (#537)
* Add inline mode support to v-select

* Use inline selects on tabular/cards
2020-05-08 14:09:06 -04:00
..
2020-03-30 15:49:23 -04:00
2020-05-08 14:09:06 -04:00
2020-05-08 14:09:06 -04:00
2020-03-30 15:49:23 -04:00
2020-05-08 14:09:06 -04:00

Select

Renders a dropdown input.

Usage

<v-select
	v-model="value"
	:items="[
		{
			text: 'Item 1',
			value: 'item-1',
		},
		{
			text: 'Item 2',
			value: 'item-2',
		},
	]"
/>

Props

Prop Description Default
items* Items to render in the select
itemText What item value to use for the display text text
itemValue What item value to use for the item value value
value Currently selected item(s)
multiple Allow multiple items to be selected false
placeholder What placeholder to show when no items are selected
full-width Render the select at full width
disabled Disable the select
show-deselect Show the deselect option when a value has been set
close-on-content-click Close the select when selecting a value true
inline Render the select inline in text false

Events

Event Description Value
input New value for the select `(string

Slots

n/a

CSS Variables

Variable Default
--v-select-font-family var(--family-sans-serif)