How to add images in Vaadin 8 Grid in Respective Rows

Here goes the Code for it

Column<Company, ThemeResource> imageColumn = grid.addColumn(
                p -> new ThemeResource(p.getName() + ".jpg"),
                        new ImageRenderer<Company>()).setCaption("Image");


Set the name of Image as you have set in the List while Populating your Pojo.



Comments

Popular posts from this blog

Navigation in Vaadin.

How to Edit Vaadin 8 Grid.

Drag and drop items from one Grid to another