examples/examples.js
function(data) {
            if (data.row.section === 'body' && data.column.dataKey === "expenses") {
                if (data.cell.raw > 750) {
                    doc.setTextColor(231, 76, 60); // Red
                    doc.setFontStyle('bold');
                }
            }
        }
function(data) {
            if (data.row.section === 'body' && data.column.dataKey === "expenses") {
                if (data.cell.raw > 750) {
                    doc.setTextColor(231, 76, 60); // Red
                    doc.setFontStyle('bold');
                }
            }
        }
function ( data ) { if ( data . row . section === 'body' && data . column . dataKey === "expenses" ) { if ( data . cell . raw > 750 ) { doc . setTextColor ( 231 , 76 , 60 ) ; // Red doc . setFontStyle ( 'bold' ) ; } } }
Use for changing styles with jspdf functions or customize the positioning of cells or cell text just before they are drawn to the page.
Use for changing styles with jspdf functions or customize the positioning of cells or cell text just before they are drawn to the page .