or.yarn add vue-heatmapjs.Utilization.To utilize this plugin bring in it in your main.js.// main.js.import Vue from 'vue'.bring in heatmap from 'vue-heatmapjs'.Vue.use( heatmap).And then you can incorporate the v-heatmap instruction to the dom elements you would like to track....You can easily toggle the heatmap on and also off through passing an articulation into the instruction:....Button Heatmap....
Utilizing the ordinance to a solitary embedded element:.You may listen closely for activities through passing an afterAdd strategy within the plugin choices, which will definitely allow you to accessibility and method the activities captured for the heatmap:.// main.js.Vue.use( heatmap, afterAdd( data) console.log( records).// you may ax this spine to your analytics server.,. ).A cool job offered on GitHub, aid the author by increasing it!