mirror of
https://github.com/tenrok/vue-select.git
synced 2026-06-22 10:30:34 +03:00
docs(resetOnOptionsChange): add versioning info (#1020)
* docs(resetOnOptionsChange): update documentation Related #1015 * docs(resetOnOptionsChange): add versioning info
This commit is contained in:
+5
-3
@@ -339,9 +339,11 @@ createOption: {
|
|||||||
|
|
||||||
## resetOnOptionsChange
|
## resetOnOptionsChange
|
||||||
|
|
||||||
When false, updating the options will not reset the selected value. Accepts
|
When false, updating the options will not reset the selected value.
|
||||||
a `boolean` or `function` that returns a `boolean`. If defined as a function,
|
|
||||||
it will receive the params listed below.
|
Since `v3.4+` the prop accepts either a `boolean` or `function` that returns a `boolean`.
|
||||||
|
|
||||||
|
If defined as a function, it will receive the params listed below.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -412,6 +412,9 @@
|
|||||||
* When false, updating the options will not reset the selected value. Accepts
|
* When false, updating the options will not reset the selected value. Accepts
|
||||||
* a `boolean` or `function` that returns a `boolean`. If defined as a function,
|
* a `boolean` or `function` that returns a `boolean`. If defined as a function,
|
||||||
* it will receive the params listed below.
|
* it will receive the params listed below.
|
||||||
|
*
|
||||||
|
* @since 3.4 - Type changed to {Boolean|Function}
|
||||||
|
*
|
||||||
* @type {Boolean|Function}
|
* @type {Boolean|Function}
|
||||||
* @param {Array} newOptions
|
* @param {Array} newOptions
|
||||||
* @param {Array} oldOptions
|
* @param {Array} oldOptions
|
||||||
|
|||||||
Reference in New Issue
Block a user