or even.yarn include vue-heatmapjs.Utilization.To utilize this plugin import it in your main.js.// main.js.bring in Vue from 'vue'.import heatmap from 'vue-heatmapjs'.Vue.use( heatmap).And afterwards you may include the v-heatmap instruction to the dom elements you desire to track....You may toggle the heatmap on as well as off by passing a phrase in to the ordinance:....Button Heatmap....
Using the directive to a singular embedded part:.You can pay attention for celebrations by passing an afterAdd method within the plugin choices, which will certainly allow you to accessibility and also procedure the celebrations recorded for the heatmap:.// main.js.Vue.use( heatmap, afterAdd( records) console.log( records).// you can easily terminate this back to your analytics server.,. ).A trendy job available on GitHub, assist the author by expanding it!