or.yarn incorporate vue-heatmapjs.Use.To utilize this plugin bring in it in your main.js.// main.js.import Vue from 'vue'.import heatmap coming from 'vue-heatmapjs'.Vue.use( heatmap).And afterwards you can add the v-heatmap ordinance to the dom aspects you intend to track....You can toggle the heatmap on as well as off by passing an articulation right into the regulation:....Button Heatmap....
Utilizing the directive to a single nested part:.You may listen for celebrations by passing an afterAdd method within the plugin options, which will enable you to accessibility and also method the occasions grabbed for the heatmap:.// main.js.Vue.use( heatmap, afterAdd( records) console.log( records).// you can easily terminate this spine to your analytics server.,. ).An amazing project on call on GitHub, assist the writer by extending it!