Skip to content

Commit 94f7125

Browse files
authored
docs: Add selectable prop to api (sagalbot#1308)
1 parent 292455b commit 94f7125

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

docs/api/props.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,23 @@ searchable: {
116116
},
117117
```
118118

119+
## selectable <Badge text="v3.3.0+" />
120+
121+
The `selectable` prop determines if an option is selectable or not. If `selectable` returns false
122+
for a given option, it will be displayed with a `vs__dropdown-option--disabled` class. The option
123+
will be disabled and unable to be selected.
124+
125+
```js
126+
selectable: {
127+
type: Function,
128+
/**
129+
* @param {Object|String} option
130+
* @return {boolean}
131+
*/
132+
default: option => true,
133+
},
134+
```
135+
119136
## multiple
120137

121138
Equivalent to the `multiple` attribute on a `<select>` input.

0 commit comments

Comments
 (0)