Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.
Hi,
for specific rows color change in browse form I can use the code as below, from one of the topic disscussed before on the forum - and it works fine.
but the question I have is:
Can you give some tips how to change the complete column color (from the very top to the bottom in browse form) ?
// begin
var col_A = "5"; // column A
var col_B = "2"; // column B
$('[data-nu-column="'+col_A+'"]').each(function (index) {
var id_A = $(this).attr('id'); // id of column A
var cellvalue_A = $('#' + id_A).html(); // value of column A
var id_B = id_A.substring(0, id_A.lastIndexOf('_') + 1) + col_B;
var cellvalue_B = $('#' + id_B).html(); // value of column B
var rowNum = String(id_A).split('_')[1];
if (cellvalue_A == "any_text1") {
$("div[id^='nucell_" + rowNum + "']").css("color", "blue");
}
else if (cellvalue_B == "any_text2") {
$("div[id^='nucell_" + rowNum + "']").css("color", "Crimson");
}
else {
$("div[id^='nucell_" + rowNum + "']").css("color", "black");
}
}
//end
If you like nuBuilder, please leave a review on SourceForge