Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请教一下,怎么设置单元格宽度固定,显示不完的内容省略号表示? #303

Open
AiFocus opened this issue Apr 17, 2023 · 1 comment

Comments

@AiFocus
Copy link

AiFocus commented Apr 17, 2023

请教一下,怎么设置单元格宽度固定,显示不完的内容省略号表示?

@zhouclcode
Copy link

这个得你自己去实现
/**
* 列构造方法
* 用于构造子列
*
* @param columnName 列名
* @param fieldName 需要解析的反射字段
* @param drawFormat 绘制格式化
*/
public Column(String columnName, String fieldName, IDrawFormat drawFormat) {
this(columnName, fieldName, null, drawFormat);
}
这里的第三个参数,自己处理格子的绘制工作,可以参考com.bin.david.form.data.format.draw.MultiLineDrawFormat

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants