Add style dynamically in interactive report

Have a requirement, find a text in interactive report and add a style for that entire row.

$(‘td:contains(“TOTAL”)’).filter(function() {
//$(‘tr td’).attr(‘style’, ‘font-weight: bold’);
// $(‘tr td’).css({ ‘background-color’ : ‘green’})
$(this).closest(‘tr’).css({ ‘font-weight’ : ‘bold’});
});

Above code find a “TOTAL” text and convert into bold for that entire row.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s