[英]How to Fix Primefaces Datatable column width and implement inner cell scroll
I'm using Primefaces(Version 3.5) DataTable to display certain data. 我正在使用Primefaces(版本3.5)DataTable显示某些数据。
How do I make only one CELL scrollable if its data exceeds than other cells in same row.?By keeping Column Width fixed[ I could not fix the Column width also ]. 如何让我比,如果在固定同一row.?By保存列宽其他细胞中的数据超过了只有一个格滚动[ 我无法修复的列宽也 。
Here is the Screen Shot: 这是屏幕截图:
Please Suggest any best approach to achieve this, may by truncating data and adding ... at end. 请提出实现此目标的最佳方法,方法可能是截断数据并在末尾添加...。 But again I can not fix the width of column.
但是同样,我无法固定列的宽度。
There is css for this: 有css:
.ui-datatable thead th, .ui-datatable tbody td, .ui-datatable tfoot td {
white-space: nowrap;
}
change it to normal. 将其更改为正常。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.