Loading...
Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon
TUTORIAL

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

Grid Renderer in Vaadin 8

Zsolt Szalai
5 years ago Oct 18, 2017 6:55pm
Tatu Lund
5 years ago Oct 19, 2017 5:41am

You can use HTMLRenderer for this, for example something like this.

grid.addColumn(simplePojo -> (simplePojo.isTruth() ? VaadinIcons.CHECK_CIRCLE : VaadinIcons.CIRCLE).getHtml()
, new HtmlRenderer())
.setCaption("Truth");