Vaadin Grid cell not showing multiline rows

前端 未结 4 829
没有蜡笔的小新
没有蜡笔的小新 2021-02-19 02:06

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

4条回答
  •  被撕碎了的回忆
    2021-02-19 02:48

    Have you tried to add a style renderer to your ceolumns to add a custom css class, where you can place your defined height?

    Example:

    Java:

    grid.setCellStyleGenerator(cellRef -> // Java 8
        "heigher");
    

    CSS:

    .v-grid-cell.heigher {
        height: 10em;
    }
    

    Example coming from: https://vaadin.com/docs/-/part/framework/components/components-grid.html

提交回复
热议问题