2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-06-10 07:52:23 +03:00

Remove foo bar (#826)

* remove foo bar examples, move tagging to values

* update tagline, add headers to values

* hunting down more foos
This commit is contained in:
Jeff Sagal
2019-04-13 10:57:56 -07:00
committed by GitHub
parent 01ecee93d5
commit b34bf57861
4 changed files with 48 additions and 32 deletions
+4 -15
View File
@@ -4,17 +4,17 @@
```html
<!-- array of strings or numbers -->
<v-select :options="['foo','bar']"></v-select>
<v-select :options="['Canada', 'United States']"></v-select>
```
<v-select :options="['foo','bar']"></v-select>
<v-select :options="['Canada', 'United States']"></v-select>
```html
<!-- or, an array of objects -->
<v-select :options="[{label: 'foo', value: 'Foo'}]"></v-select>
<v-select :options="[{label: 'Canada', code: 'ca'}]"></v-select>
```
<v-select :options="[{label: 'foo', value: 'Foo'}]"></v-select>
<v-select :options="[{label: 'Canada', code: 'ca'}]"></v-select>
## Option Labels
@@ -52,14 +52,3 @@ If you wanted to display `Canada` in the dropdown, you'd use the `countryName` k
`vue-select` requires the `options` prop to be an `array`. If you are using Vue in development
mode, you will get warnings attempting to pass anything other than an `array` to the `options` prop.
If you need a `null`/`empty` value, use an empty array `[]`.
## Tagging
To allow input that's not present within the options, set the `taggable` prop to true.
If you want new tags to be pushed to the options list, set `push-tags` to true.
```html
<v-select taggable multiple push-tags />
```
<v-select taggable multiple push-tags />