vue3-tabevents

1.1.0 • Public • Published

vue-tabevents

npm npm npm jsdelivr travisci

Easy communication between tabs for Vue 3.x

Basic Screenshot

Getting Started

Installing

Install with npm:

npm install --save vue-tabevents

import into project:

import Vue from 'vue';
import vueTabevents from 'vue-tabevents';

Vue.use(vueTabevents);

Usage

To an emit event to other tabs

this.$tabEvent.emit('eventName');

const data = {
	name: 'Ali'
	phone: 123
}

this.$tabEvent.emit('eventName', data);

To listen for events emitted by other types

this.$tabEvent.on('eventName', callback);

this.$tabEvent.on('eventName', (data) => console.log(data));

To stop listening to an event

this.$tabEvent.off('eventName');

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details

/vue3-tabevents/

    Package Sidebar

    Install

    npm i vue3-tabevents

    Weekly Downloads

    1

    Version

    1.1.0

    License

    MIT

    Unpacked Size

    15.8 kB

    Total Files

    9

    Last publish

    Collaborators

    • acapxasyrafx