You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You should be able to set header fill color with headerFill property in your column definition and onCellBackgroundAdd/ed events.
.addColumns([{
id: 'col',
header: 'My header',
headerFill: true // needed so we know we need to fill header cells
}])
.onCellBackgroundAdd(t => t.pdf.fill('#eeeeee')) // set fill color
.onCellBackgroundAdded(t => t.pdf.fill('black')) // reset fill color
.onHeaderAdd(tb => {
// set header color
console.log('tb');
console.log(tb);
tb.pdf.fillColor('#000000')
tb.pdf.font('font/static/Inter-Medium.ttf')
})
unable to add header background color.
The text was updated successfully, but these errors were encountered: