mirror of
https://github.com/tenrok/vue-select.git
synced 2026-05-17 02:29:37 +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.
|
||||
* @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:
|
||||
|
||||
Reference in New Issue
Block a user