We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 292455b commit 94f7125Copy full SHA for 94f7125
docs/api/props.md
@@ -116,6 +116,23 @@ searchable: {
116
},
117
```
118
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
136
## multiple
137
138
Equivalent to the `multiple` attribute on a `<select>` input.
0 commit comments