or even.yarn add vue-heatmapjs.Usage.To utilize this plugin bring in it in your main.js.// main.js.import Vue coming from 'vue'.import heatmap coming from 'vue-heatmapjs'.Vue.use( heatmap).And afterwards you may add the v-heatmap instruction to the dom aspects you desire to track....You can toggle the heatmap on and also off through passing an expression in to the instruction:....Toggle Heatmap....
Using the ordinance to a solitary embedded component:.You can easily listen closely for activities through passing an afterAdd strategy within the plugin choices, which will certainly permit you to access and procedure the celebrations captured for the heatmap:.// main.js.Vue.use( heatmap, afterAdd( data) console.log( data).// you can discharge this spine to your analytics web server.,. ).An amazing task offered on GitHub, help the writer through extending it!