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

docs: add open and close events to the documentation (#1366)

* add open and close events to the documentation
* Update events.md

Co-authored-by: Jeff Sagal <sagalbot@gmail.com>
This commit is contained in:
Can Geliş
2021-07-22 23:22:52 +03:00
committed by GitHub
parent 7d59ab206f
commit 86dd03dfda
+16
View File
@@ -9,6 +9,22 @@ Triggered when the selected value changes. Used internally for `v-model`.
this.$emit("input", val);
```
## `open`
Triggered when the dropdown is open.
```js
this.$emit("open");
```
## `close`
Triggered when the dropdown is closed.
```js
this.$emit("close");
```
## `option:selecting` <Badge text="v3.11.0+" />
Triggered after an option has been selected, <strong>before</strong> updating internal state.