Hi,
I use the Vaadin 8 and I would like to know how can I show VaadinIcon resources in a grid column and add style depends on the column values?
Thanks in advance.
Hi,
I use the Vaadin 8 and I would like to know how can I show VaadinIcon resources in a grid column and add style depends on the column values?
Thanks in advance.
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");