vue-tabevents
vue-tabevents
Easy communication between tabs for Vue 2.x

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
- Ali Almoullim - almoullim
License
This project is licensed under the MIT License - see the LICENSE.md file for details
Related Packages
@red-asuka/vitepress-plugin-tabs
VitePress plugin - markdown custom container to display content in tabs
49,189
10
vitepress-plugin-component
VitePress plugin that renders Vue components with tabs showing preview and sourc...
1,223
2
Version History
| Version | Released | License |
|---|---|---|
| 1.2.0 | MIT | |
| 1.1.0 | MIT | |
| 1.0.0 | MIT |