jsPDF-AutoTable icon indicating copy to clipboard operation
jsPDF-AutoTable copied to clipboard

How can i make specific row bold?

Open akshaybhoendie opened this issue 9 years ago • 3 comments

I am working on generating a pdf, but now i want a specific row to be bold.. see picture. Let's say i want to make row 1 and 3 to be bold? how could i do that?

rowbold

akshaybhoendie avatar Jan 19 '17 14:01 akshaybhoendie

Cross posting: http://stackoverflow.com/questions/41743672/how-can-i-make-a-specific-row-bold

simonbengtsson avatar Jan 19 '17 14:01 simonbengtsson

Hi,

thank you :)

On Thu, Jan 19, 2017 at 11:25 AM, Simon Bengtsson [email protected] wrote:

Something like this:

doc.autoTable(cols, data, { createdRow: function(row, data) { if (row.index === 0 || row.index === 2) { row.styles.fontStyle = 'bold'; } } })

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/simonbengtsson/jsPDF-AutoTable/issues/228#issuecomment-273789113, or mute the thread https://github.com/notifications/unsubscribe-auth/AXZNw33CORsmd-_htzOImvO57m8--Zc2ks5rT3JXgaJpZM4LoJXk .

-- MVG,

Akhsaykumar Bhoendie Hannaslustweg #6 Wanica, Suriname +(597)8549488

"It's hard enough to find an error in your code when you're looking for it; it's even harder when you've assumed your code is error-free.**"

akshaybhoendie avatar Jan 19 '17 14:01 akshaybhoendie

hi, how can I set specific cell values in Bold..?

rajprabhuRP avatar Nov 27 '18 12:11 rajprabhuRP