Search code examples
angular-ui-gridpdfmake

ui-grid pdfMake export layout


I am using pdfMake to export from ui-grid and I am trying to set the layout of the table using exporterPdfTableLayout as decribed in the ui-grid documentation

A tableLayout in pdfMake format, controls gridlines and the like. We use the default layout usually. Defaults to null, which means no layout

I am trying to set the layout using the following line:

exporterPdfTableLayout: 'lightHorizontalLines' 

Where 'lightHorizontalLines' is a standard layout provided by pdfMake which I want to use.

I cannot find any examples of this being used or any other documentation on ui-grid for this purpose.

Can someone help with where I am going wrong?


Solution

  • It appears the

    exporterPdfTableLayout:
    

    does not work in ui-grid. I fixed this by editing the 'defaultLayout' directly in the pdfMaker.js file