如何让网格单元显示 ag-grid 中的整个输入文本?

How can I make the grid cells show the whole input text in ag-grid?

希望你今天过得愉快。
所以我在我的项目中使用 ag-grid 在一个统一的网络应用程序中转换一堆 excel 工具(文件)。 到目前为止,一切都很好。 但是,我找不到使用 ag-grid 框架使网格单元格显示整个输入文本的方法。

在Excel中:

在农业网格中:

我希望我已经表达清楚了。
我在 ag-grid 文档中进行了搜索,但没有结果。这似乎也是他们所有项目示例中的默认输入文本单元格呈现。
https://www.ag-grid.com/javascript-grid-cell-editing/
欢迎任何帮助:)

这个与我已经回答过的一个相似:AG-Grid - How to increase row height dynamically?

为列提供 CSS class

{
  header: 'Address',
  field: 'address',
  cellClass: "cell-wrap-text",
}

CSS class - 将其保留在您的根级别 styles

.cell-wrap-text {
    white-space: normal !important;
}