or.yarn add vue-heatmapjs.Usage.To utilize this plugin bring in it in your main.js.// main.js.bring in Vue from 'vue'.import heatmap from 'vue-heatmapjs'.Vue.use( heatmap).And afterwards you can easily incorporate the v-heatmap instruction to the dom components you would like to track....You may toggle the heatmap on as well as off by passing a phrase right into the regulation:....Toggle Heatmap....
Making use of the instruction to a singular embedded part:.You may listen for celebrations by passing an afterAdd technique within the plugin alternatives, which will certainly enable you to access and method the activities grabbed for the heatmap:.// main.js.Vue.use( heatmap, afterAdd( records) console.log( information).// you may fire this back to your analytics hosting server.,. ).An amazing project on call on GitHub, assist the writer through growing it!