From 7b62ad0a5620abf27fc95319af7dce1e40902bda Mon Sep 17 00:00:00 2001 From: nanotronic Date: Thu, 24 Mar 2016 18:23:50 +0100 Subject: [PATCH] update readme --- README.md | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index afcd90d..931799d 100644 --- a/README.md +++ b/README.md @@ -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: