UI-grid 导出器:如何在 table 中右对齐数据
UI-grid exporter: How to right align data within the table
我想右对齐导出的 ui 网格 pdf 的某些元素。
我有一个 header、主 table 和已导出的页脚。我只希望 table 和页脚中包含编号数据的部分右对齐。
此代码将文本居中对齐。它是 table 的列 header。
exporterPdfTableHeaderStyle: {fontSize: 10, bold: true, italics: true, color: 'red', alignment: 'center'},
这并没有解决问题,因为它右对齐了所有导出的内容。那不是我想要的。
exporterPdfDefaultStyle: {fontSize: 9, alignment: 'right'},
header(它自己的 table)、table 数据和页脚都默认左对齐。
任何导出器可以帮助我正确对齐 table 的某些部分?任何帮助表示赞赏。
在我的 columnDef 中,我使用
exporterPdfAlign: 'right',
这会对齐每列下的内容header
我想右对齐导出的 ui 网格 pdf 的某些元素。
我有一个 header、主 table 和已导出的页脚。我只希望 table 和页脚中包含编号数据的部分右对齐。
此代码将文本居中对齐。它是 table 的列 header。
exporterPdfTableHeaderStyle: {fontSize: 10, bold: true, italics: true, color: 'red', alignment: 'center'},
这并没有解决问题,因为它右对齐了所有导出的内容。那不是我想要的。
exporterPdfDefaultStyle: {fontSize: 9, alignment: 'right'},
header(它自己的 table)、table 数据和页脚都默认左对齐。
任何导出器可以帮助我正确对齐 table 的某些部分?任何帮助表示赞赏。
在我的 columnDef 中,我使用
exporterPdfAlign: 'right',
这会对齐每列下的内容header