Vaadin网格单元格未显示多行的行 [英] Vaadin Grid cell not showing multiline rows

查看:193
本文介绍了Vaadin网格单元格未显示多行的行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Vaadin Grid,我想为每个单元格生成多行单元格,这些单元格的单元格中有更多内容与其宽度重叠。



我已经尝试过:

>


  • java \\\
    新行字符和CSS样式,如 white-space:pre; 但它似乎不起作用。 (此解决方案适用于表)

  • 使用 >< / br> 标记和不同的CSS显示设置 b $ b

    解决方案

    Vaadin Grid仍然没有原生支持多行列,但你可以尝试一些即兴创作,例如我建议看到Vaadin论坛的讨论链接:
    网格 - 如何在一个单元格中显示多行

    您也可以尝试为Grid创建自定义渲染器。


    With Vaadin Grid, I want to generate multiline cells for every cell that have more content in cell that overlaps its width.

    I have allready tried:

    • java \n new line character and CSS stylings like white-space: pre; but it does not seem to work. (This solution worked for Table)

    • custom renderer setRenderer(HtmlRenderer) with </br>tags and different CSS display settings

    Desired result:

    解决方案

    Vaadin Grid still doesn't have native support for multiline columns but you can try some improvisation, on example I suggest to see the Vaadin forum discussion on the link: Grid - How to display multiple lines in one cell

    Also you can try to create custom renderer for the Grid.

    这篇关于Vaadin网格单元格未显示多行的行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆