reactjs - 在单元格中换行
问题描述
我在我的 ReactJS 页面上的 ag-grid 中关注了列定义。
const myColDefs = [
{
headerName: "ProductDescription",
field: 'Product_Desc'
width:50
resizable: true,
wrapText:true,
cellStyle: {'white-space':'normal'},
autoHeight: true
}
]
如果产品描述太长(比如超过 100 个字),则文本不会被包裹在单元格中。我确实在 cellStyle 中尝试了以下操作,但对我不起作用:'text-overflow':'clip''overflow-wrap':'break-word'
谢谢你。
解决方案
推荐阅读
- symfony - 语义错误 - 注释 Swagger
- google-colaboratory - 关闭浏览器后 Google Colab Pro+ 工作
- r - 宽到长的数据框,在主题变量内部和之间有很多
- r - 如何编写函数将字符向量转换为分钟?
- css - 在边框底部居中 SVG
- javascript - 从本地 API Next.js 获取数据
- python - 为什么 XRPUSDT 在尝试使用 Python 中的 Binance API Web 套接字获取最新价格时返回 None
- c# - C#复选框状态不切换回未选中状态
- extjs - extJs 7.0.0 社区版 - 安装文档不起作用
- python - 在 tox testenv “ModuleNotFoundError: No module named 'pandas” 中,每当将 pandas 添加到 deps 时,就会出现错误