or even.yarn add vue-heatmapjs.Use.To utilize this plugin import it in your main.js.// main.js.import Vue from 'vue'.import heatmap coming from 'vue-heatmapjs'.Vue.use( heatmap).And afterwards you may include the v-heatmap directive to the dom factors you want to track....You can toggle the heatmap on as well as off by passing an expression right into the instruction:....Button Heatmap....
Using the directive to a solitary embedded component:.You can easily pay attention for occasions by passing an afterAdd procedure within the plugin choices, which will permit you to get access to and process the events grabbed for the heatmap:.// main.js.Vue.use( heatmap, afterAdd( records) console.log( records).// you can terminate this spine to your analytics server.,. ).A cool project offered on GitHub, help the author by increasing it!