2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-05-17 02:29:37 +03:00

docs: Add selectable prop to api (#1308)

This commit is contained in:
Sølve Tornøe
2020-11-17 01:15:05 +01:00
committed by GitHub
parent 292455b5ce
commit 94f7125fc9
+17
View File
@@ -116,6 +116,23 @@ searchable: {
},
```
## selectable <Badge text="v3.3.0+" />
The `selectable` prop determines if an option is selectable or not. If `selectable` returns false
for a given option, it will be displayed with a `vs__dropdown-option--disabled` class. The option
will be disabled and unable to be selected.
```js
selectable: {
type: Function,
/**
* @param {Object|String} option
* @return {boolean}
*/
default: option => true,
},
```
## multiple
Equivalent to the `multiple` attribute on a `<select>` input.