在 Ag Grid 中,如何将某些字段的列 headers 对齐到左侧,而其他字段则对齐到右侧?
How can i align column headers for some fields to be on the left and others on the right in Ag Grid?
如何在 AG-grid 控件的 header 中将某些列的文本向右移动,而将其他列的文本向左移动?我曾尝试在列定义中使用 cellstyle 和 cellclass,但这没有用。
我能够将列数据向左、向右或居中移动。但无法移动 header 数据。
谢谢
第 header 列默认为 left-aligned。
对于 right-align 列 header,您可以将列定义的 'type' 属性 设置为 'rightAligned' 或 'numericColumn',这是 'rightAligned'.
的别名
文档位于 https://www.ag-grid.com/javascript-grid-column-definitions/#right-aligned-and-numeric-columns
如何在 AG-grid 控件的 header 中将某些列的文本向右移动,而将其他列的文本向左移动?我曾尝试在列定义中使用 cellstyle 和 cellclass,但这没有用。
我能够将列数据向左、向右或居中移动。但无法移动 header 数据。
谢谢
第 header 列默认为 left-aligned。
对于 right-align 列 header,您可以将列定义的 'type' 属性 设置为 'rightAligned' 或 'numericColumn',这是 'rightAligned'.
的别名文档位于 https://www.ag-grid.com/javascript-grid-column-definitions/#right-aligned-and-numeric-columns