当前位置: 动力学知识库 > 问答 > 编程问答 >

angularjs - ui-grid: How do I set column width when using pdf export

问题描述:

How can I set column widths when exporting pdf using ui-grid. Pdfmake has width as an option however the ui-grid exporter api docs don't have this option anywhere.

Thanks for the help

网友答案:

After a bit more fiddling with the source code, discovered that the width is retrieved from the gridoptions.columnsDef.width value. Here is the link to the docs http://ui-grid.info/docs/#/api/ui.grid.class:GridOptions.columnDef

分享给朋友:
您可能感兴趣的文章:
随机阅读: