I'm using Prawn and need to make the Header row bold but I can't find any solution in the API.
Here you can see my current table with normal text Headers
pdf.table (Data, :header => true) do
table.header=(["Header1", "Header2", "Header3", "Header4"])
end
Its just as simple as I thought
pdf.table Data, {:header => true} do |table|
table.header=(["Header1", "Header2", "Header3", "Header4"])
table.row(0).font_style = :bold
end
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With