>enyone知道agGrid autoHeight列属性是否适用于ag-grid-angular中的cellRendererFramework?
我已经试过了,但对我来说它不起作用 https://www.ag-grid.com/javascript-grid-row-height/#auto-row-height
这是我的列配置
{
headerName: 'Custom title',
field: 'title',
cellRendererFramework: CustomTitleCellComponent,
autoHeight: true,
cellClass: 'ag-table-cell-auto-height'
}
自定义标题单元格组件具有不同的高度,具体取决于其内容
列的 css 样式
.ag-table-cell-auto-height {
white-space: normal;
}
有谁知道是否可以将自动高度与 ag-grid-angular 用于 cellRendererFramework?
不,你不能为编辑器执行此操作。您必须为自动行高配置列。请参阅 https://www.ag-grid.com/javascript-grid-row-height/#auto-row-height