vue-events Questions
3
Solved
I am using vue-multiselect component in my vue.js project, I am using v-on directive to execute a function on the change event ,
<multiselect v-model="selected" :options="projects" :searchable=...
Salvatoresalvay asked 30/3, 2018 at 3:58
5
I have a vue composable that needs to fire an event. I naively set it up as follows:
*// composable.js*
import { defineEmits } from "vue";
export default function useComposable() {
// V...
Gladysglagolitic asked 26/5, 2022 at 16:18
1
Solved
I'm building the logic for an 'undo delete' - action. For that, I'm using an Event Bus to send an event to two unrelated components like so:
Undo.vue:
EventBus.$emit(`confirm-delete-${this.category...
Myrlmyrle asked 25/2, 2020 at 9:6
1
Solved
I am trying to emit multiple parameters from child to parents. What is the best way to do it.
Child
getUpdated(value, type) {
if (type === 'students') {
this.students = value.map(val => val...
Xuanxunit asked 12/1, 2021 at 14:43
1
The @drop listener doesn't work for me. It doesn't call the method I'm telling it to call.
I want to drag the chip and be able to drop it on another component, and perform a function, but at the ti...
Fabrienne asked 23/7, 2020 at 21:22
2
Solved
In a Vue app I have a paste listener on a textarea with the intention to run validation code when the user pastes data into this field. When I log the paste event I can see in the console that the ...
Discursive asked 11/4, 2020 at 18:16
1
Solved
In this article it is explained how to use a global event bus in VueJS. It describes an alternative method to the common approach using an event bus defined in a separate file:
import Vue from 'vu...
Neckpiece asked 21/2, 2020 at 12:31
6
I'm expecting that 'close' event is fired when I'm
clicking ESC button being on "shadow-modal" div, but it's not happening
vue 2.5.13, any ideas why?
<template>
<div class="shadow-mod...
Alternate asked 1/3, 2018 at 4:32
1
Solved
I am trying to have an element with both a drag and click event. I have read about and tried a combination of event modifiers.
However, no matter what I try, I get a click when drag is stopped.
Not...
Ellie asked 10/12, 2018 at 9:52
2
I am reading some code that I want to update:
<b-input :value="value" @input="$emit('input', $event)" ref="input" :maxlength="maxlength"/>
what does @input="$emit('input', $event)" stand f...
Hodosh asked 8/11, 2018 at 13:45
1
I'm learning about Vuejs event handling.
I think that the developer could use this.$on('event', handler) in js file to process the 'event'.
There is an example.
<div id="mainapp" v-on:...
Replication asked 26/10, 2018 at 2:46
1
Solved
I am struggling with events propagation. The task is to prevent clicking on anything alse, if the data is not saved. So, The left div contains a tree of options. After clicking on an item, a settin...
Eaddy asked 3/9, 2018 at 18:47
1
© 2022 - 2024 — McMap. All rights reserved.