2
0
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:
nanotronic
2016-03-24 18:23:50 +01:00
parent 7127131bfa
commit 7b62ad0a56
+28 -1
View File
@@ -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: