[Vuejs]-Using bootstrap modal in a Table

0👍

The trick was to use “v-bind:id = ‘uniqueid'” for each td tag, like this, we can identify each row of a given column in the v-for loop. then using a bit of jQuery in order to trigger each cell . like this:

const button = document.getElementById(id); 
button.click(); 
$("#exampleModalCenter").modal("show");

Leave a comment