Styling only specific columns in pdfHtml5

Styling only specific columns in pdfHtml5

CapamaniaCapamania Posts: 229Questions: 79Answers: 5
edited January 2017 in Buttons

With doc.defaultStyle.noWrap = true; I can noWrap the whole table when exporting to pdf. But how can I apply noWrap only to a certain column? So e.g. only to column 5 and 7 ?

{
    extend:    'pdfHtml5',
    text:      'PDF',
        exportOptions: {
            columns: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
        },
    customize: function(doc) {
    
        doc.defaultStyle.noWrap = true;
        
    }
}

Many thanks

Answers

  • allanallan Posts: 61,697Questions: 1Answers: 10,102 Site admin

    I'm afraid that this is a pdfmake specific question. I don't know their API well enough to be able to answer it. You'd need to go through their documentation or support channels.

    Allan

This discussion has been closed.