mirror of
https://github.com/tenrok/vue-select.git
synced 2026-06-22 10:30:34 +03:00
+5
-5
@@ -120,7 +120,7 @@ searchable: {
|
|||||||
|
|
||||||
The `selectable` prop determines if an option is selectable or not. If `selectable` returns false
|
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
|
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.
|
will be disabled and unable to be selected.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
selectable: {
|
selectable: {
|
||||||
@@ -389,10 +389,10 @@ if the option should be displayed.
|
|||||||
|
|
||||||
```js
|
```js
|
||||||
filterBy: {
|
filterBy: {
|
||||||
type: Function,
|
type: Function,
|
||||||
default(option, label, search) {
|
default(option, label, search) {
|
||||||
return (label | "").toLowerCase().indexOf(search.toLowerCase()) > -1;
|
return (label || '').toLowerCase().indexOf(search.toLowerCase()) > -1
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user