Hello, I have looked through this example https://jsfiddle.net/p5w7vy3n/ and I have a question regarding the context menu. In this case, could I change the condition for the “remove_row” option to something like this?
settings3 = {
data: getData(),
rowHeaders: true,
colHeaders: true,
licenseKey: 'non-commercial-and-evaluation',
contextMenu: {
items: {
"make_read_only": {},
"row_above": {},
"row_below": {},
"remove_col": {},
"remove_row": {
hidden: function() {
tableData.forEach(row => {
if (row.editable && row.hasYear) {
return false
} else {
return true
}
}
}
}
}
}
};
I want the “remove row” option to be displayed only for certain rows that have those 2 properties and it seems to not be working like this.
Thank you!