|
methods: {
rowSelected: function (args) {
if (window.flag) { //when you click the button the flag is true and here you can write the code for button click
window.flag = false;
} else {
//here you can write the code for rowselected actions
console.log("rowselected event triggers");
}
},
recordClick: function (args) {
if (args.column.headerText === "Commands") {
window.flag = true; //based on the click of target we able to get the column headerText
}
},
}
|
|
methods: {
rowSelected: function (args) {
if (!args.target.closest("td").classList.contains("e-unboundcell")) { //prevent the command button click
//here you can write the code for rowselected actions
console.log("rowSelected event triggers");
}
},
commandClick: function (args)
//here you can write the code for command button actions
console.log("Command click event triggers");
},
}, |