vue-tabevents

Easy communication between tabs for Vue 2.x
9,316 33
Install
npm install vue-tabevents
Latest Version:1.2.0
License:MIT
Last Updated:Mar 3, 2024
Links: GitHub  ·  npm
Maintainer: almoullim

vue-tabevents

npm npm npm jsdelivr travisci

Easy communication between tabs for Vue 2.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

Related Packages

vue-events

Easy event handling for Vue applications.

294,092 231
@red-asuka/vitepress-plugin-tabs

VitePress plugin - markdown custom container to display content in tabs

49,189 10
vue-aware

Optimized and easy way to manage events across Vue.js components.

1,511 6
vitepress-plugin-component

VitePress plugin that renders Vue components with tabs showing preview and sourc...

1,223 2
@21cnfe/onekit-mp-cli

小程序框架开发工具

1,063

Version History

Version Released License
1.2.0 MIT
1.1.0 MIT
1.0.0 MIT