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 after that you can easily include the v-heatmap directive to the dom factors you would like to track....You can toggle the heatmap on as well as off by passing an articulation into the ordinance:....Button Heatmap....
Making use of the directive to a solitary embedded part:.You may listen for celebrations through passing an afterAdd procedure within the plugin alternatives, which will definitely permit you to get access to and procedure the activities grabbed for the heatmap:.// main.js.Vue.use( heatmap, afterAdd( records) console.log( information).// you can fire this spine to your analytics server.,. ).An awesome job readily available on GitHub, help the writer through growing it!