mirror of
https://github.com/tenrok/vue-select.git
synced 2026-06-22 10:30:34 +03:00
docs: add missing @search event #1417
This commit is contained in:
@@ -69,3 +69,21 @@ event is triggered.
|
|||||||
```js
|
```js
|
||||||
this.$emit("search:focus");
|
this.$emit("search:focus");
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## `search`
|
||||||
|
|
||||||
|
Triggered when the search text changes.
|
||||||
|
|
||||||
|
```js
|
||||||
|
/**
|
||||||
|
* Anytime the search string changes, emit the
|
||||||
|
* 'search' event. The event is passed with two
|
||||||
|
* parameters: the search string, and a function
|
||||||
|
* that accepts a boolean parameter to toggle the
|
||||||
|
* loading state.
|
||||||
|
*
|
||||||
|
* @emits search
|
||||||
|
*/
|
||||||
|
this.$emit('search', newSearchString, toggleLoading);
|
||||||
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user