hey is there any way we can colour the rows of the grid in child table based on some logic. thank you in advance
frappe.ui.form.on('DocType', {
refresh: function(frm) {
// select the first row in the child table
var rows = document.getElementsByClassName("grid-row");
for (var i = 0; i < rows.length; i++) {
rows[i].style.backgroundColor = "cadetblue";
}
}
});