2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-06-13 08:32:26 +03:00

- complete docs overhaul

This commit is contained in:
Jeff
2018-01-14 23:35:29 -08:00
parent 7e859dca18
commit 6671b8ead2
12 changed files with 428 additions and 153 deletions
+17
View File
@@ -0,0 +1,17 @@
#### Scoped Slot `option`
vue-select provides the scoped `option` slot in order to create custom dropdown templates.
```html
<v-select :options="options" label="title">
<template slot="option" slot-scope="option">
<span :class="option.icon"></span>
{{ option.title }}
</template>
</v-select>
```
Using the `option` slot with `slot-scope="option"` gives the
provides the current option variable to the template.
[](codepen://sagalbot/NXBwYG?height=500)