mirror of
https://github.com/tenrok/vue-select.git
synced 2026-06-22 10:30:34 +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:
@@ -9,6 +9,22 @@ Triggered when the selected value changes. Used internally for `v-model`.
|
|||||||
this.$emit("input", val);
|
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+" />
|
## `option:selecting` <Badge text="v3.11.0+" />
|
||||||
|
|
||||||
Triggered after an option has been selected, <strong>before</strong> updating internal state.
|
Triggered after an option has been selected, <strong>before</strong> updating internal state.
|
||||||
|
|||||||
Reference in New Issue
Block a user