DataTable customization

Report.js:

if (JSON.parse(this.data).ReportName == "Automation Scorecard") {
    table = $tblContainer.DataTable({
        "bSort": false,
        "createdRow": function (row, data, dataIndex) {
            if (filters.ReportName == "Automation Scorecard" && data[0].indexOf("") > -1) {
                $(row).addClass('header-lightblue');
            }
        },
        'rowCallback': function (row, data, index) {
            for (i = 1; i < 11; i++) { if (data[i].indexOf('%') > -1 && data[i].indexOf(' ') == -1 && data[i] < '70%') {
                    $(row).find('td:eq('+i+')').css('color', 'red');
                }
            }
        },

Change title font size:

header title font size:
.header-title{
    font-size:18px;
    font-weight:bold;
}

Leave a Reply

Your email address will not be published. Required fields are marked *