Open lucafs opened 11 months ago
Hi, @lucafs , here is example.
{
label: "",
field: "quick",
width: "5%",
display: (row) => {
return "<button id='is-rows-el redirect-btn' data-xx='" + row.xx + "'>redirect</button>"
},
}
const tableLoadingFinish = (elements) => {
table.isLoading = false;
Array.prototype.forEach.call(elements, function (element) {
if (element.classList.contains("redirect-btn")) {
element.addEventListener("click", function () {
const xx = this.dataset.xx;
// add your route change code
});
}
});
};
Tried several different things and could not find a way to do it.. Can you help me?