2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-05-17 02:29:37 +03:00

docs: add missing @search event #1417

This commit is contained in:
George Catalin
2021-07-22 23:15:18 +03:00
committed by GitHub
parent 2e8dd919ca
commit 7da3ad422f
+18
View File
@@ -69,3 +69,21 @@ event is triggered.
```js
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);
```