or.anecdote include vue-heatmapjs.Use.To utilize this plugin import it in your main.js.// main.js.import Vue coming from 'vue'.import heatmap from 'vue-heatmapjs'.Vue.use( heatmap).And afterwards you may incorporate the v-heatmap instruction to the dom elements you would like to track....You can toggle the heatmap on and also off through passing a phrase right into the regulation:....Button Heatmap....
Making use of the directive to a solitary embedded part:.You may listen for events by passing an afterAdd method within the plugin possibilities, which will permit you to access and also process the activities captured for the heatmap:.// main.js.Vue.use( heatmap, afterAdd( information) console.log( records).// you can easily ax this spine to your analytics web server.,. ).A great venture readily available on GitHub, assist the writer by increasing it!