mirror of
https://github.com/tenrok/vue-select.git
synced 2026-06-19 09:50:33 +03:00
docs: Add selectable prop to api (#1308)
This commit is contained in:
@@ -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
|
## multiple
|
||||||
|
|
||||||
Equivalent to the `multiple` attribute on a `<select>` input.
|
Equivalent to the `multiple` attribute on a `<select>` input.
|
||||||
|
|||||||
Reference in New Issue
Block a user