or even.yarn include vue-heatmapjs.Usage.To use this plugin bring in it in your main.js.// main.js.import Vue coming from 'vue'.bring in heatmap coming from 'vue-heatmapjs'.Vue.use( heatmap).And then you can easily add the v-heatmap instruction to the dom elements you desire to track....You can toggle the heatmap on and off through passing a phrase into the directive:....Button Heatmap....
Utilizing the regulation to a singular nested component:.You may listen closely for activities through passing an afterAdd approach within the plugin choices, which will allow you to get access to and process the occasions captured for the heatmap:.// main.js.Vue.use( heatmap, afterAdd( records) console.log( data).// you can easily ax this back to your analytics web server.,. ).An awesome task accessible on GitHub, help the author by growing it!