mirror of
https://github.com/tenrok/vue-select.git
synced 2026-06-22 10:30:34 +03:00
update readme
This commit is contained in:
@@ -121,7 +121,34 @@ export default {
|
|||||||
* an action, rather than using :value.sync to retreive the selected value.
|
* an action, rather than using :value.sync to retreive the selected value.
|
||||||
* @type {[type]}
|
* @type {[type]}
|
||||||
*/
|
*/
|
||||||
onChange: Function
|
onChange: Function,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Enable/disable creating options from searchInput.
|
||||||
|
* @type {Boolean}
|
||||||
|
*/
|
||||||
|
tagable: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* User defined function for adding Options
|
||||||
|
* @type {Function}
|
||||||
|
*/
|
||||||
|
createOption: {
|
||||||
|
type: Function,
|
||||||
|
default: function (value) {
|
||||||
|
let firstOption = this.options[0]
|
||||||
|
if (firstOption && typeof firstOption === 'object' ) {
|
||||||
|
value = {
|
||||||
|
value
|
||||||
|
}
|
||||||
|
value[this.label] = value
|
||||||
|
}
|
||||||
|
return value
|
||||||
|
}
|
||||||
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
## Todos:
|
## Todos:
|
||||||
|
|||||||
Reference in New Issue
Block a user