diff --git a/README.md b/README.md index 1a8588e..628a877 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ export default { - `value` Represents the currently selected value(s). Can be `null`, an empty string, or `[]`. If `multiple` is true, the current value will be represented in an array, otherwise it will be a single string or object, depending on what you've passed for `options`. - twoway: true, - required: true -- `options` Any array of strings or objects to be used as dropdown choices. Supports `['foo','bar']` & `[{label: 'Foo', value: 'foo'}]`. When using the `[{}]` syntax, the objects in the array can have as many properties as you need, as long as the object contains `value` and `label` keys. +- `options` An array of strings or objects to be used as dropdown choices. Supports `['foo','bar']` & `[{label: 'Foo', value: 'foo'}]`. When using the `[{}]` syntax, the objects in the array can have as many properties as you need, as long as the object contains `value` and `label` keys. - type: `Array` - default: `[]` - `maxHeight` Limit the height of the dropdown menu. diff --git a/dist/build.js b/dist/build.js index 2e2e4fc..fbde703 100644 --- a/dist/build.js +++ b/dist/build.js @@ -10250,7 +10250,7 @@ exports.default = { } }; if (module.exports.__esModule) module.exports = module.exports.default -;(typeof module.exports === "function"? module.exports.options: module.exports).template = "
A simple component that provides similar functionality to Select2 without the overhead of jQuery.
View on GitHub{{ select | json }}options property is watched for changes, and the value is reset anytime the options change. This is useful if you have multiple selection boxes that depend on its ancestors values.multiple attribute to a <select>. You'll want to clear any selections you have made before changing this option. It's not one that should be changed after render.placeholder attribute.$ npm install sagalbot/vue-select<template>\n <div id=\"myApp\">\n <v-select :value.sync=\"selected\" :options=\"options\"></v-select>\n </div>\n </template>\n\n<script>\nimport vSelect from 'vue-select'\n export default {\n components: {vSelect},\n\n data() {\n return {\n selected: null,\n options: ['foo','bar','baz']\n }\n }\n }\n</script>\n
value Represents the currently selected value(s)maxHeight Limit the height of the dropdown menusearchable Toggle filtering of optionsmultiple Equivalent to multiple attribute on a <select>placeholder Equivalent to placeholder attribute on an <input>transition Vue transition prop applied to the .dropdown-menuA simple component that provides similar functionality to Select2 without the overhead of jQuery.
View on GitHub{{ select | json }}options property is watched for changes, and the value is reset anytime the options change. This is useful if you have multiple selection boxes that depend on its ancestors values.multiple attribute to a <select>. You'll want to clear any selections you have made before changing this option. It's not one that should be changed after render.placeholder attribute.$ npm install sagalbot/vue-select<template>\n <div id=\"myApp\">\n <v-select :value.sync=\"selected\" :options=\"options\"></v-select>\n </div>\n </template>\n\n<script>\nimport vSelect from 'vue-select'\n export default {\n components: {vSelect},\n\n data() {\n return {\n selected: null,\n options: ['foo','bar','baz']\n }\n }\n }\n</script>\n
value Represents the currently selected value(s)options An array of strings or objects to be used as dropdown choices. Supports ['foo','bar'] & [{label: 'Foo', value: 'foo'}]. When using the [{}] syntax, the objects in the array can have as many properties as you need, as long as the object contains value and label keys.maxHeight Limit the height of the dropdown menusearchable Toggle filtering of optionsmultiple Equivalent to multiple attribute on a <select>placeholder Equivalent to placeholder attribute on an <input>transition Vue transition prop applied to the .dropdown-menuoptions property is watched for changes, and the value is reset anytime the options change. This is useful if you have multiple selection boxes that depend on its ancestors values.
@@ -139,7 +139,7 @@
$ npm install sagalbot/vue-select
-
+
<template>
<div id="myApp">
@@ -173,6 +173,14 @@
+
+ options An array of strings or objects to be used as dropdown choices. Supports ['foo','bar'] & [{label: 'Foo', value: 'foo'}]. When using the [{}] syntax, the objects in the array can have as many properties as you need, as long as the object contains value and label keys.
+
+ - type: Array
+ - default: []
+
+
+
maxHeight Limit the height of the dropdown menu
@@ -212,7 +220,6 @@
- default: true
-